astrorama / SourceXtractorPlusPlus

SourceXtractor++, the next generation SExtractor
https://astrorama.github.io/SourceXtractorPlusPlus/
GNU Lesser General Public License v3.0
72 stars 9 forks source link

Check type of the parameters for MeasurementImage #514

Closed ayllon closed 1 year ago

ayllon commented 1 year ago

Makes errors clearer, from

sourcextractor/config/measurement_images.py", line 170, in __init__
2022-08-31T13:38:55CEST SourceXtractor FATAL : Python argument types in
    None.None(MeasurementImage, float)
did not match C++ signature:
    None(SourceXtractor::PyMeasurementImage {lvalue}, bool)

to

_images.py", line 117, in _set_checked
2022-09-01T12:38:57CEST SourceXtractor FATAL : Expecting bool for weight_absolute, got float