Skip to content

Commit

Permalink
Remove false warning from duplicated data.
Browse files Browse the repository at this point in the history
  • Loading branch information
joakim-hove committed Nov 16, 2017
1 parent 45e6674 commit f53cd37
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions python/python/ert_gui/plottery/plot_data_gatherer.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ def gatherSummaryData(ert, case, key):
if not data.empty:
data = data.reset_index()

if True in data.duplicated():
print("** Warning: The simulation data contains duplicate "
"timestamps. A possible explanation is that your "
"simulation timestep is less than a second.")
data = data.drop_duplicates()
if any(data.dupliated()):
print("** Warning: The simulation data contains duplicate "
"timestamps. A possible explanation is that your "
"simulation timestep is less than a second.")
data = data.drop_duplicates()


data = data.pivot(index="Date", columns="Realization", values=key)

Expand Down

0 comments on commit f53cd37

Please sign in to comment.