mfouesneau / pyphot

suite to deal with passband photometry
https://mfouesneau.github.io/pyphot/
MIT License
57 stars 18 forks source link

Some updates #25

Closed yqiuu closed 2 years ago

yqiuu commented 3 years ago

Hi Morgan,

This PR contains two updates:

  1. I find that when all input fluxes are zero, get_flux method gives an error because the returned array does not have a unit. I also simplify the code to add units by noting that applying filters should preserve the unit of the input fluxes.

  2. Now the input fluxes can more general array shape.

mfouesneau commented 2 years ago

This needs to be also propagated to the astropy based code.

Thanks for the update.