Commit 0d59783b authored by Zhang Xin's avatar Zhang Xin
Browse files

fix spec sim bug

parent d5059d30
......@@ -312,7 +312,7 @@ class Chip(FocalPlane):
BoolDeadPix = False
# Add sky background
if sky_map == None:
if sky_map is None:
sky_map = filt.getSkyNoise(exptime=self.exptime)
elif img.array.shape != sky_map.shape:
raise ValueError("The shape img and sky_map must be equal.")
......
......@@ -218,7 +218,7 @@ class Observation(object):
pointing_ID=pointing_ID,
timestamp_obs=timestamp_obs,
pointing_type=pointing_type,
sky_map=sky_map)
sky_map=sky_map, tel = self.tel)
if pointing_type == 'MS':
datetime_obs = datetime.fromtimestamp(timestamp_obs)
......
Supports Markdown
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