resqpy.time_series.time_series_from_nexus_summary

resqpy.time_series.time_series_from_nexus_summary(summary_file, parent_model=None, start_date=None)

Create a TimeSeries object based on time steps reported in a Nexus summary file (.sum).

Parameters
  • summary_file (str) – path of Nexus summary file

  • parent_model (Model) – the model to which the new time series will be attached

  • start_date (str, optional) – if the summary file does not contain dates, this will be used as the start date; required format is ‘YYYY-MM-DD’

Returns

newly created TimeSeries

Note

this function does not create the xml for the new TimeSeries, nor add it as a part to the parent model