Skip to content

Commit

Permalink
Merge pull request #125 from Statoil/numpy64-datetime-conversion
Browse files Browse the repository at this point in the history
Register a datetime converter when importing pandas
  • Loading branch information
joakim-hove authored Aug 31, 2018
2 parents d31cb02 + 8efc8ea commit 406741a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/python/ert_gui/plottery/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# At least for some combinations of pandas and matplotlib the numpy.datetime64
# dates coming from pandas are not correctly recognized/converted by matplotlib.
# Calling this converter.register() method seems to fix the problem.
from pandas.tseries import converter
converter.register()

from .plot_data_gatherer import PlotDataGatherer
from .plot_style import PlotStyle
from .plot_limits import PlotLimits
Expand Down

0 comments on commit 406741a

Please sign in to comment.