GithubHelp home page GithubHelp logo

easygalaxy's People

Contributors

boada avatar cmancone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

easygalaxy's Issues

ModuleNotFoundError: No module named 'astro_filter'

Hi, I had successfully installed the EzGal python module. However, when I try to import the module through the web interface, it returns that ModuleNotFoundError: No module named 'astro_filter'. I was wondering if there are some suggestions on how to solve this problem. Thanks!

problem with loading a filter

Hi. When I run the example,

plot( zs, model.get_rest_ml_ratios( zf, filters='sloan_i', zs=zs ), 'k-', label='Sloan i' )

I run into this error:
ValueError: Pass a numpy array with the vega spectrum to calculate vega conversion!

Similarly, I get the same error when I try to add a new filter.

Trouble reading BC03 .ised files

I'm having some trouble reading these files under python3.6. In the utils.py there is some reading of the binary files, line

junk = _read_binary(fh, type='c', number=80)
. The typecode c is deprecated after python3.5. I changed them to b, now I am getting another error.


IndexError Traceback (most recent call last)
in
----> 1 model2 = ezgal.model('/home/boada/Projects/BC2003/bc03/newiseds/1_0gyr_hr_m62_salp.ised')

~/.local/lib/python3.6/site-packages/ezgal/ezgal.py in init(self, model_file, is_ised, is_fits, is_ascii, has_masses, units, age_units, skip_load)
207 has_masses=has_masses,
208 units=units,
--> 209 age_units=age_units)
210
211 #####################

~/.local/lib/python3.6/site-packages/ezgal/ezgal.py in _load(self, model_file, is_ised, is_fits, is_ascii, has_masses, units, age_units)
247 # test for a bruzual-charlot binary ised file
248 if model_file[len(model_file) - 5:] == '.ised' or is_ised:
--> 249 self._load_ised(self.filename)
250 else:
251 # And then the rest.

~/.local/lib/python3.6/site-packages/ezgal/ezgal.py in _load_ised(self, file)
2507
2508 # read ised file
-> 2509 (seds, ages, vs) = utils.read_ised(file)
2510
2511 # store ages

~/.local/lib/python3.6/site-packages/ezgal/utils.py in read_ised(file)
477 sinds = vs.argsort()
478
--> 479 return (seds[sinds, :], ages, vs[sinds, :])

IndexError: too many indices for array

So now there is some indexing problems... @cmancone do you have a minute to look at this?

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.