Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
esde
toar-public
toarstats
Commits
bac01398
Commit
bac01398
authored
Dec 22, 2021
by
Niklas Selke
Browse files
Added blank lines in docstrings to get properly formatted bullet lists.
parent
95b48c7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
toarstats/input_checks.py
View file @
bac01398
...
...
@@ -105,6 +105,7 @@ def check_statistics(statistics_in):
:raises TypeError: raised if the statistics parameter is missing or
not a string or list, set or tuple of strings
:raises ValueError: raised if
- an empty list, set, tuple or string is given
- any given name is not recognized
- the ``diurnal_cycle`` statistic is not given
...
...
@@ -197,12 +198,14 @@ def check_data(data_in, datetimes_in, values_in):
:param values_in: the given values parameter
:raises TypeError: raised if
- the data parameter is given and not a data
frame or series
- the index is not a datetime index
- the values are not in a one-dimensional float
or int array
:raises ValueError: raised if
- the index is empty, has duplicates or null
values
- the values array is empty or only contains
...
...
@@ -314,6 +317,7 @@ def check_metadata(metadata_in, station_lat_in, station_lon_in,
:raises KeyError: raised if any key in the metadata parameter is not
recognized
:raises TypeError: raised if
- the metadata parameter is given and not a
dictionary or named tuple
- the station latitude is given and not a float
...
...
@@ -323,6 +327,7 @@ def check_metadata(metadata_in, station_lat_in, station_lon_in,
- the station climatic zone is given and not an
int or string
:raises ValueError: raised if
- the station latitude is given and not
between -90 and 90
- the station longitude is given and not
...
...
@@ -527,6 +532,7 @@ def check_input_parameters(
:raises TypeError: raised if any parameter has the wrong type or any
required parameter is missing
:raises ValueError: raised if
- any parameter has the wrong value
- the ``drmdmax1h`` statistic is given
together with ``monthly`` sampling
...
...
toarstats/interface.py
View file @
bac01398
...
...
@@ -98,12 +98,14 @@ def calculate_statistics(
missing in the ``metadata`` argument
:raises KeyError: raised if
- any key in the metadata parameter is not
recognized
- a growing season is unknown
:raises TypeError: raised if any parameter has the wrong type or any
required parameter is missing
:raises ValueError: raised if
- any parameter has the wrong value
- the ``drmdmax1h`` statistic is given
together with ``monthly`` sampling
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment