andreicuceu / vega Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Would be get to set L_binsize to CF grid size for default
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
In the Config Tutorial documentation, the description for per_exp_smooth says it is along the line of sight, but it should be across the line of sight.
build_config.py crashes at the line
git_hash = git.Repo(vega_path.parents[0]).head.object.hexsha
when the code is not from a git clone. This is the case when a tar file is downloaded instead from the list of tags. For instance
wget https://github.com/andreicuceu/vega/archive/refs/tags/v0.4.2.tar.gz
Since git:
URIs no longer work, the intro should specify:
git clone https://github.com/andreicuceu/vega.git
Also, the resulting package dir is vega
, not Vega
so the cd
command should probably be updated.
Finally, if you would like to include instructions for a custom conda env, this worked for me:
conda create --name vega pip ipython jupyter jupyterlab ipykernel numpy scipy astropy numba h5py setuptools "iminuit>=2.0.0" cachetools matplotlib
conda activate vega
pip install mcfit
The following combination of INI parameters:
[model]
...
old_fftlog = True
single_multipole = 2
crashes with an array-indexing error:
File ~/DESI/code/vega/vega/pktoxi.py:199, in PktoXi.Pk2Mp(ar, k, pk, ell_vals, muk, dmuk, tform)
197 xi_loc[-1] = 0
198 spline = interpolate.splrep(np.log(r)-dr/2, np.real(xi_loc), k=3, s=0)
--> 199 xi[ell//2, :] = interpolate.splev(np.log(ar), spline)
201 return xi
IndexError: index 1 is out of bounds for axis 0 with size 1
while setting old_fftlog = False
works as expected.
It looks like this is a simple array size / indexing issue that should be easy to fix. Otherwise, if this combination is not worth supporting, perhaps check for it and print a useful message when it occurs?
In the Vega config files I used environmental variables (as I used to do in fitter2), and I get the following error:
Traceback (most recent call last):
File "/global/homes/i/iprafols/desi/git/vega/bin/run_vega_mpi.py", line 14, in <module>
vega = VegaInterface(args.config)
File "/global/homes/i/iprafols/.local/lib/python3.8/site-packages/vega/vega_interface.py", line 66, in __init__
self.data[name] = data.Data(corr_item)
File "/global/homes/i/iprafols/.local/lib/python3.8/site-packages/vega/data.py", line 36, in __init__
rp_rt_grid, z_grid = self._read_data(data_path,
File "/global/homes/i/iprafols/.local/lib/python3.8/site-packages/vega/data.py", line 133, in _read_data
hdul = fits.open(find_file(data_path))
File "/global/homes/i/iprafols/.local/lib/python3.8/site-packages/vega/utils.py", line 420, in find_file
raise RuntimeError('The path/file does not exists: ', input_path)
RuntimeError: ('The path/file does not exists: ', PosixPath('$REDO_DR16/Correlation/cf_z_0_10-exp.fits'))
I think this is something useful to have
I was trying to use the sampler with Andrea and found that the installation instructions are incomplete. If you just follow the instructions, then the libraries are not properly linked. You need to add the path to the libraries.
In my case I do export LD_LIBRARY_PATH=/global/homes/i/iprafols/desi/git/PolyChordLite/lib:${LD_LIBRARY_PATH}
This needs to be run in every terminal but can be added to the .bashrc
(or .basrhc.ext
) file for automatic running of the export.
It'd be good to add these few extra lines to the installation instructions
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.