asteca / ASteCA

Code for the ASteCA package.
http://asteca.github.io/
MIT License
18 stars 6 forks source link

Read metallicity value from data inside isochrones' file? #161

Closed Gabriel-p closed 8 years ago

Gabriel-p commented 9 years ago

Currently the get_metals function in get_met_ages_values takes the metallicity value of the file from the name of the file.

It would be simpler if the metallicity would be read from the information stored inside the file, so as to lift the restriction about the names of the isochrones.

This would also take care of another issue: on Windows system the decimal dot that is needed in the metallicity files (ie: 0.0019.dat) could cause problems.

Having a random file name and obtaining the metallicity values from within the file would make this go away.

Related #133 (closed)

Gabriel-p commented 8 years ago

Not a good idea. Having the metallicity explicitly mentioned in the file's name is cleaner.

See #277 for branched issue.