Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
Manually set the timeRange start to start time.
Browse files Browse the repository at this point in the history
  • Loading branch information
joakim-hove committed Jan 4, 2016
1 parent 02c61aa commit e4f11f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions devel/python/python/ert/ecl/ecl_sum.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,13 @@ def timeRange(self , start = None , end = None , interval = "1Y", extend_end = T
else:
trange.append( end )

# If the simulation does not start at the first of the month
# the start value will be before the simulation start; we
# manually shift the first element in the trange to the start
# value.
if trange[0] < start:
trange[0] = start

return trange


Expand Down

0 comments on commit e4f11f5

Please sign in to comment.