Skip to content

Commit

Permalink
Update neural_lam/weather_dataset.py
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Oskarsson <[email protected]>
  • Loading branch information
leifdenby and joeloskarsson authored Nov 12, 2024
1 parent f022365 commit b33e863
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions neural_lam/weather_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ def __init__(
if self.__len__() <= 0:
raise ValueError(
"The provided datastore only provides "
f"{len(self.da_state.time)} time steps for `{split}` split, "
f"which is less than the required 2+ar_steps "
f"(2+{self.ar_steps}={2 + self.ar_steps}) for creating a "
"sample with initial and target states."
f"{len(self.da_state.time)} total time steps, which is too few "
"to create a single sample for the WeatherDataset configuration used"
f" in the `{split}` split."
)

# Set up for standardization
Expand Down

0 comments on commit b33e863

Please sign in to comment.