mfouesneau / pyphot

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

Have extractPhotometry and extractSEDs return photometry as quantities #40

Closed sundarjhu closed 2 years ago

sundarjhu commented 2 years ago

While the get_flux method applied on a single filter returns the corresponding flux as a quantity, the extractPhotometry and extractSEDs methods do not. Would it be possible to have them do so? Or (if that's inefficient) to return the units of the flux in some way? Thanks!

@pscicluna

mfouesneau commented 2 years ago

These two should be deprecated. I do not recommend these functions that are only valid for specific (counter) filters. These are unsafe to use.

mfouesneau commented 2 years ago

You should use the filter methods directly instead. There is a small overhead of checking units but worth it for the robustness.

mfouesneau commented 2 years ago

41 deprecating functions.