Skip to content

Commit

Permalink
TODOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ecomodeller committed Jan 22, 2025
1 parent a05682c commit 3c318fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modelskill/timeseries/_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def _parse_point_items(

# check that there are no duplicates
res = PointItem(values=item, aux=aux_items_str)
# TODO move validation to PointItem
if len(set(res.all)) != len(res.all):
raise ValueError(f"Duplicate items! {res.all}")

Expand All @@ -66,6 +67,7 @@ def _parse_point_input(
data, get_args(PointType)
), f"Could not construct object from provided data of type {type(data)}"

# TODO refactor and create separate methods for each input type
if isinstance(data, (str, Path)):
suffix = Path(data).suffix
if suffix == ".dfs0":
Expand Down

0 comments on commit 3c318fc

Please sign in to comment.