You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added ``fill_masked`` method to ``NDCube``, a new feature which allows users to replace masked values and uncertainty values with user-given fill values,
2
+
to change the mask values back to False or not (Default), and to set whether the new instance is returned (Default) or not.
("ndcube_2d_ln_lt_mask_uncert_unit_one_maskele_true", 1.0, 0.1, False, "ndcube_2d_ln_lt_mask_uncert_unit_one_maskele_true_expected_unmask_false"), # when it changes the cube in place: its data, uncertainty; it does not unmask the mask.
("ndcube_2d_ln_lt_mask_uncert_unit_one_maskele_true", 1.0*u.ct, 0.1*u.ct, False, "ndcube_2d_ln_lt_mask_uncert_unit_one_maskele_true_expected_unmask_false"), # fill_value has a unit
1395
+
1396
+
("ndcube_2d_ln_lt_mask_uncert_unit_mask_true", 1.0, 0.1, False, "ndcube_2d_ln_lt_mask_uncert_unit_mask_true_expected_unmask_false"), # when it changes the cube in place: its data, uncertainty; it does not unmask the mask.
("ndcube_2d_ln_lt_mask_uncert_unit_mask_true", 1.0*u.ct, 0.1*u.ct, False, "ndcube_2d_ln_lt_mask_uncert_unit_mask_true_expected_unmask_false"), # fill_value has a unit
1399
+
# TODO: test unit not aligned??
1400
+
1401
+
("ndcube_2d_ln_lt_mask_uncert_unit_mask_false", 1.0, 0.1*u.ct, False, "ndcube_2d_ln_lt_mask_uncert_unit_mask_false") # no change.
("ndcube_2d_ln_lt_mask_uncert_unit_one_maskele_true", 1.0, 0.1, False, "ndcube_2d_ln_lt_mask_uncert_unit_one_maskele_true_expected_unmask_false"), # when it changes the cube in place: its data, uncertainty; it does not unmask the mask.
("ndcube_2d_ln_lt_mask_uncert_unit_one_maskele_true", 1.0*u.ct, 0.1*u.ct, False, "ndcube_2d_ln_lt_mask_uncert_unit_one_maskele_true_expected_unmask_false"), # fill_value has a unit
1427
+
1428
+
("ndcube_2d_ln_lt_mask_uncert_unit_mask_true", 1.0, 0.1, False, "ndcube_2d_ln_lt_mask_uncert_unit_mask_true_expected_unmask_false"), # when it changes the cube in place: its data, uncertainty; it does not unmask the mask.
("ndcube_2d_ln_lt_mask_uncert_unit_mask_true", 1.0*u.ct, 0.1*u.ct, False, "ndcube_2d_ln_lt_mask_uncert_unit_mask_true_expected_unmask_false"), # fill_value has a unit
1431
+
#TODO: test unit not aligned??
1432
+
1433
+
("ndcube_2d_ln_lt_mask_uncert_unit_mask_false", 1.0, 0.1*u.ct, False, "ndcube_2d_ln_lt_mask_uncert_unit_mask_false") # no change.
1434
+
1435
+
# TODO: are there more test cases needed? yes: when uncertainty fill is not None but ndc's uncertainty is None.
0 commit comments