Skip to content

Commit

Permalink
More int
Browse files Browse the repository at this point in the history
  • Loading branch information
ecomodeller committed Aug 20, 2024
1 parent 44d0aa5 commit b14b862
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mikeio/dfsu/_layered.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def time(self) -> pd.DatetimeIndex:
return pd.date_range(
start=self.start_time,
periods=self.n_timesteps,
freq=f"{self.timestep}s",
freq=f"{int(self.timestep)}s",
)
else:
raise NotImplementedError(
Expand Down
2 changes: 1 addition & 1 deletion mikeio/dfsu/_spectral.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def time(self) -> pd.DatetimeIndex:
return pd.date_range(
start=self.start_time,
periods=self.n_timesteps,
freq=f"{self.timestep}S",
freq=f"{int(self.timestep)}s",
)
else:
raise NotImplementedError(
Expand Down

0 comments on commit b14b862

Please sign in to comment.