Commit 9bdf6336 authored by Yan Zhaojun's avatar Yan Zhaojun
Browse files

debug

parent f77c0647
Pipeline #4185 failed with stage
in 0 seconds
...@@ -5519,10 +5519,15 @@ class IFSsimulator(): ...@@ -5519,10 +5519,15 @@ class IFSsimulator():
# if self.debug: # if self.debug:
# exptimes=1 # exptimes=1
if exptimes>1:
self.image_b_N = np.zeros((1344, 9672, exptimes)) self.image_b_N = np.zeros((1344, 9672, exptimes))
self.image_r_N = np.zeros((1856, 13768, exptimes)) self.image_r_N = np.zeros((1856, 13768, exptimes))
else:
self.image_b_N = np.zeros((1344, 9672))
self.image_r_N = np.zeros((1856, 13768))
for idk in range(exptimes): for idk in range(exptimes):
...@@ -5591,8 +5596,15 @@ class IFSsimulator(): ...@@ -5591,8 +5596,15 @@ class IFSsimulator():
self.discretise() self.discretise()
self.image_b_N[:, :, idk] = self.image_b[:, :]
self.image_r_N[:, :, idk] = self.image_r[:, :] if exptimes>1:
self.image_b_N[:, :, idk] = self.image_b[:, :].copy()
self.image_r_N[:, :, idk] = self.image_r[:, :].copy()
else:
self.image_b_N[:, :] = self.image_b[:, :].copy()
self.image_r_N[:, :] = self.image_r[:, :].copy()
self.writeOutputs(simnumber) self.writeOutputs(simnumber)
......
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