paranoya / population-synthesis-toolkit

Spetral synthesis, photometry, SED fitting, etc.
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

ChemicalEvolutionModel refactoring #13

Closed PabloCorcho closed 1 month ago

PabloCorcho commented 2 months ago

General

  1. I would rename the module models.py as chem_ev_models.py or anything of the sort.

  2. I would try to avoid single character variables such as Z or M, as well as sticking to lower case format for attributes and methods.

Base class

  1. Should it have any instance attribute? Currently it has M_gas and Z.

  2. If something like z_ism (as a replacement for Z) is an attribute of the base class, we would also need to define the times, right? Also, we could convert it into a property, and ensure that it is always a (one dimensional) np.array. Right now it could have different types (float or array).

Tabular_MFH

Misc

For reference

integral_sfr(t) = int sfr(t) dt
integral_z_sfr(t) = int sfr(t) z_ism(t) dt / integral_sfr(t)

What do you think?

PabloCorcho commented 2 months ago

@paranoya please include your comments following today's meeting