Giter VIP home page Giter VIP logo

Comments (9)

themiyan avatar themiyan commented on September 17, 2024

@mjvakili did you manage to get this issue sorted?

from easygalaxy.

mjvakili avatar mjvakili commented on September 17, 2024

@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.

smorawetz avatar smorawetz commented on September 17, 2024

@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.

boada avatar boada commented on September 17, 2024

@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.

mjvakili avatar mjvakili commented on September 17, 2024

@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.

smorawetz avatar smorawetz commented on September 17, 2024

@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.

mjvakili avatar mjvakili commented on September 17, 2024

Closing this issue

from easygalaxy.

RuancunLi avatar RuancunLi commented on September 17, 2024

@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.

boada avatar boada commented on September 17, 2024

It's included in the package.

easyGalaxy/ezgal/data/refs/vega.fits

from easygalaxy.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.