asteca / ASteCA

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

Add check for number of age values in metallicity files #218

Closed Gabriel-p closed 6 years ago

Gabriel-p commented 9 years ago

Currently the code assumes that all metallicity files contain the same number (and values) of ages defined. This number is taken (arbitrarily) from the first metallicity file (alphabetically).

See: https://github.com/asteca/ASteCA/blob/master/functions/_in/get_met_ages_values.py#L128

This means that if for some reason this file contains a different number of ages, the checker will not notice this and the best fit function will fail down the line thus wasting a lot of time.

Gabriel-p commented 6 years ago

This was fixed some time ago with this commit https://github.com/asteca/ASteCA/commit/42c55c57a0341993a968c850dd55bb9f09d5bbed