Skip to content

Commit

Permalink
Replaced numpy float aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyowl committed Jul 14, 2023
1 parent e6cb537 commit cbf1853
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nemo/completeness.py
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@ def tidyUp(config):
# Make MEFs
MEFsToBuild=["RMSMap_%s" % (config.parDict['photFilter'])]
compressionTypes=["RICE_1"]
dtypes=[np.float]
dtypes=[np.float32]
if 'selFnFootprints' in config.parDict.keys():
for footprintDict in config.parDict['selFnFootprints']:
MEFsToBuild.append("intersect_%s" % footprintDict['label'])
Expand Down
4 changes: 2 additions & 2 deletions nemo/maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def saveMEF(self, outFileName, compressionType = None):
if compressionType == 'PLIO_1':
dtype=np.uint8
else:
dtype=np.float
dtype=np.float32
hdu=pyfits.CompImageHDU(np.array(self[tileName], dtype = dtype),
header, name = tileName,
compression_type = compressionType)
Expand Down Expand Up @@ -2395,7 +2395,7 @@ def saveFITS(outputFileName, mapData, wcs, compressionType = None):
if compressionType == 'PLIO_1':
dtype=np.uint8
else:
dtype=np.float
dtype=np.float32
hdu=pyfits.CompImageHDU(np.array(mapData, dtype = dtype), wcs.header,
compression_type = compressionType)
else:
Expand Down

0 comments on commit cbf1853

Please sign in to comment.