Skip to content

Commit

Permalink
Convert correctly to numpy array
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdstein committed Jun 28, 2022
1 parent 540c806 commit 94d94ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nuztf/skymap_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,8 @@ def read_map(

for x in hdul:
if data is None:
if hasattr(x, "data"):
data = x.data
if x.data is not None:
data = np.array(x.data)

if "DISTMEAN" in x.header:
dist = x.header["DISTMEAN"]
Expand Down

0 comments on commit 94d94ed

Please sign in to comment.