Skip to content
Snippets Groups Projects
Commit fcb4460c authored by Christoph von Oy's avatar Christoph von Oy
Browse files

Added check that profiles only have number data types

parent 1f64708b
No related branches found
No related tags found
No related merge requests found
......@@ -1528,6 +1528,8 @@ def resample_variable(variable, dynamic: Dynamic, target_dynamic: Dynamic):
class Profile:
def __init__(self, values, dynamic: Dynamic): # values: type hinting np-array
if not isinstance(values[0], np.number):
raise ValueError(f"Invalid data type {type(values[0])}!")
self.values = values
self.dynamic = dynamic
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment