Skip to content

Commit

Permalink
Fix issue #202
Browse files Browse the repository at this point in the history
switching to dt/2
  • Loading branch information
deanthedream committed Feb 27, 2019
1 parent b5aeca1 commit 0ad900c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EXOSIMS/Prototypes/SurveySimulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ def observation_characterization(self, sInd, mode):
timePlus = Obs.settlingTime.copy() + mode['syst']['ohTime'].copy()#accounts for the time since the current time
for i in range(self.ntFlux):
# allocate first half of dt
timePlus += dt
timePlus += dt/2.
# calculate current zodiacal light brightness
fZs[i] = ZL.fZ(Obs, TL, sInd, currentTimeAbs + timePlus, mode)[0]
# propagate the system to match up with current time
Expand All @@ -1480,7 +1480,7 @@ def observation_characterization(self, sInd, mode):
Ss[i,:], Ns[i,:] = self.calc_signal_noise(sInd, planinds, dt, mode,
fZ=fZs[i])
# allocate second half of dt
timePlus += dt
timePlus += dt/2.

# average output parameters
fZ = np.mean(fZs)
Expand Down

0 comments on commit 0ad900c

Please sign in to comment.