paranoya / population-synthesis-toolkit

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

bugfix on weights #26

Closed PabloCorcho closed 1 month ago

PabloCorcho commented 1 month ago

There was a bug on the computation of weights in ParticleGridCEM

PabloCorcho commented 1 month ago

I fixed a potential issue at masses = np.ones_like(ages), since this way the masses would inherit the age unit.

PabloCorcho commented 1 month ago

When you implemented get_weights did you intended it to be a staticmethod? Otherwise you forgot to include the self argument in the method