-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
features.util.bounded_is_fixed() does not work for dust_feature-only science packs #274
Comments
I agree we can just enforce all columns are |
OK, update, never mind that. #283 includes a fix for this. It should create bounds for all parameter columns except for string-parameters ( |
Double check if this is fixed, please. |
Yes, seems to work now, since |
I didn't check all the |
When a science pack is created that only has dust_feature entries, there will be no masked values in the power column of the Features table. As a consequence, the astropy table constructor automatically decides whether to use a
Column
instead of aMaskedColumn
. This means that any functionality that relies on the presence of a mask attribute, wil fail.E.g. in
featuresutil.bounded_is_fixed(): return ma.getmask(val)[..., -2:].all(-1)
, wheregetmask
will returnFalse
.Most consistent solution: Force the use of
MaskedColumn
(or in our caseBoundedMaskedColumn
) when the Features table.Even if we found another way around this bug, I think we should enforce this to ensure consistency. (e.g. What if the user want to set power boundaries, but the power column does not support masks because of the way the table was loaded?)
The text was updated successfully, but these errors were encountered: