Commit d073b615 authored by LUSTIG Peter's avatar LUSTIG Peter

small change

parent 69a24aed
......@@ -3,6 +3,7 @@ import matplotlib.pyplot as plt
from nikamap import NikaMap
from astropy.io import fits
from pathlib import Path
from warnings import warn
def plot(data, wcs=None, ax=None, steps=None):
......@@ -41,7 +42,13 @@ nm = NikaMap.read(orimgfile)
hlsmaskfile = ('/home/peter/Dokumente/Uni/Paris/Stage/FirstSteps/Completness/'
'masks.fits')
hlsmask = np.array(fits.getdata(hlsmaskfile, 'HLS2FWHM'), dtype=bool)
hlsmaskfile = ('./masks.fits')
try:
hlsmask = np.array(fits.getdata(hlsmaskfile, 'HLS2FWHM'), dtype=bool)
except FileNotFoundError:
hlsmask = np.zeros(nm.shape, dtype=int)
warn('No mask for HLS found')
# %matplotlib tk
# plot(1/nm.uncertainty.array**2, wcs=nm.wcs)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment