Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrakenhoff committed Aug 15, 2024
1 parent a8e3780 commit a8e596f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pastastore/extensions/hpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import hydropandas as hpd
import numpy as np
from hydropandas.io.knmi import _check_latest_measurement_date_de_bilt, get_stations
from hydropandas.io.knmi import get_stations
from pandas import DataFrame, Series, Timedelta, Timestamp
from pastas.timeseries_utils import timestep_weighted_resample
from tqdm.auto import tqdm
Expand Down Expand Up @@ -145,7 +145,7 @@ def add_observation(
return

if normalize_datetime_index and o.index.size > 1:
o = self._normalize_datetime_index(o).dropna()
o = self._normalize_datetime_index(o).iloc[1:] # remove first nan
elif normalize_datetime_index and o.index.size <= 1:
raise ValueError(
"Must have minimum of 2 observations for timestep_weighted_resample."
Expand Down

0 comments on commit a8e596f

Please sign in to comment.