cmancone / easygalaxy Goto Github PK
View Code? Open in Web Editor NEWEasy Galaxy: A Flexible Interface for Stellar Population Synthesis Models
License: MIT License
Easy Galaxy: A Flexible Interface for Stellar Population Synthesis Models
License: MIT License
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!
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.
I'm having some trouble reading these files under python3.6. In the utils.py
there is some reading of the binary files, line
Line 432 in 0608b17
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?
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.