Skip to content

Commit

Permalink
update example (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktarbet authored Jul 3, 2024
1 parent b66d4d9 commit 42781ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/rainfall_parser/DssWriter.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime

from hecdss.hecdss import HecDss
from hecdss.hecdss import TimeSeries
from hecdss.hecdss import RegularTimeSeries


class DssWriter:
Expand All @@ -16,7 +16,7 @@ def write_to_dss(self ,df, path):

dss = HecDss(self.filename)
print("record count = " + str(dss.record_count()))
tsc = TimeSeries()
tsc = RegularTimeSeries()
tsc.id = path
tsc.values = df[df.columns[0]].values.astype(float)
tsc.times = df.index.tolist()
Expand Down
4 changes: 2 additions & 2 deletions examples/rainfall_parser/rainfall_sim_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def process_csv(args):
'dss_parameter': 'PRECIP-INC',
'dss_type': 'PER-CUM',
'write_debug_files': False,
'plot_data': False,
'plot_data': True,
'series_name': 'Precipitation (mm/hr)',
'units': 'mm/hr',
'dss_units': 'MM',
Expand All @@ -302,7 +302,7 @@ def process_csv(args):
'dss_parameter': 'FLOW',
'dss_type': 'INST-VAL',
'write_debug_files': False,
'plot_data': False,
'plot_data': True,
'series_name': 'Runoff (mm/hr)',
'units': 'mm/hr',
'dss_units': 'CMS',
Expand Down

0 comments on commit 42781ee

Please sign in to comment.