Skip to content

Commit

Permalink
Merge pull request #258 from sot/fix-np-bools
Browse files Browse the repository at this point in the history
Convert remaining np.bool to bool
  • Loading branch information
taldcroft authored Mar 19, 2024
2 parents 199d78a + 4c5cf9f commit 35a92b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cheta/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def generic_converter2(msid_cxc_map, default_dtypes=None):
def _convert(dat):
# Make quality bool array with entries for TIME, QUALITY, then all other cols
out_names = ["TIME", "QUALITY"] + list(msid_cxc_map.keys())
out_quality = np.zeros(shape=(len(dat), len(out_names)), dtype=np.bool)
out_quality = np.zeros(shape=(len(dat), len(out_names)), dtype=bool)
out_arrays = {"TIME": dat["TIME"], "QUALITY": out_quality}

for out_name, in_name in msid_cxc_map.items():
Expand Down
2 changes: 1 addition & 1 deletion cheta/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,7 @@ def __new__(self, msid, start=LAUNCH_DATE, stop=None, stat=None):
out = MSIDset(msids, start=start, stop=stop, stat=stat)
if stat is not None:
for m in msids:
out[m].bads = np.zeros(len(out[m].vals), dtype=np.bool)
out[m].bads = np.zeros(len(out[m].vals), dtype=bool)

# Set bad mask
i_bads = np.flatnonzero(out["HRC_SS_HK_BAD"].vals > 0)
Expand Down

0 comments on commit 35a92b1

Please sign in to comment.