Skip to content

Commit

Permalink
fix the docstring of the parse_tim_model method
Browse files Browse the repository at this point in the history
  • Loading branch information
MAfarrag committed Jan 20, 2025
1 parent f9b075b commit 8b3dc02
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hydrolib/tools/ext_old_to_new/converters.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,11 @@ def parse_tim_model(
tim file contains 4 columns (excluding the time column).
>>> tim_file = Path("tests/data/input/source-sink/leftsor.tim")
>>> converter = SourceSinkConverter()
>>> time_series = converter.parse_tim_model(tim_file, ext_file_quantity_list)
>>> print(time_series) # doctest: +SKIP
>>> tim_model = converter.parse_tim_model(tim_file, ext_file_quantity_list)
>>> print(tim_model.quantities_names)
['discharge', 'salinitydelta', 'temperaturedelta', 'initialtracer-anyname']
>>> print(tim_model.as_dict()) # doctest: +SKIP
{
"discharge": [1.0, 1.0, 1.0, 1.0, 1.0],
"salinitydelta": [2.0, 2.0, 2.0, 2.0, 2.0],
Expand Down

0 comments on commit 8b3dc02

Please sign in to comment.