Comments (9)
@mjvakili did you manage to get this issue sorted?
from easygalaxy.
@themiyan yes I managed to get it to work
by doing something similar to this:
model = ezgal.model("bc03_burst_0.1_z_0.02_chab.model") model.add_filter("i.dat" , "omega_cam" , units = "nm")
where "bc03_burst_0.1_z_0.02_chab.model" is downloaded from the ezgal website
from easygalaxy.
@mjvakili Hi, I'm experiencing the same issue as you mentioned earlier. I tried copying your code from your recent comment, and am still getting the same error. Could you share more of your code so I have more context?
Thanks
from easygalaxy.
@stewm0 It's because the vega reference spectrum is not being installed with the rest of the package. I bet the other people here are just running things from the source directory, and you are installing things with python setup.py install
.
Check out https://docs.python.org/3.6/distutils/setupscript.html#installing-package-data
You can also look at my recent fork for a fix.
from easygalaxy.
@stewm0 sorry I totally forgot to respond!
The code is the same. As @boada pointed out, it's most likely the package itself that's not installed properly on your machine. You might want to install it directly from the source.
from easygalaxy.
@boada You're exactly right, as I eventually figured out. Thanks for the response
If installed with pip, as recommended on the EzGal website, one has to install the data file (found here) separately, as it contains some standardized information (e.g. vega spectrum).
from easygalaxy.
Closing this issue
from easygalaxy.
@stewm0 Hi, I am also dealing with this problem. Where can I find the the ``data" file? I mean, that the model information is easy to download, which stored on the EzGal website. However, I couldn't find the filters information, especially the standardized vega spectrum.
from easygalaxy.
It's included in the package.
easyGalaxy/ezgal/data/refs/vega.fits
from easygalaxy.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easygalaxy.