Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/weathergen/datasets/multi_stream_data_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ def check_samples(self, fsm: int):
max_index = self.index_range.end - (
( # max time units needed to make a forecast
self.time_step * (fsm + self.output_offset) # translation due to forecasting
+ self.len_timedelta # length of forecasting window
)
// self.step_timedelta # as number of indexs
)
Expand All @@ -169,7 +168,7 @@ def check_samples(self, fsm: int):
samples_per_mini_epoch reduced to {available_samples} to avoid repeating data. \
Set repeat_data_in_mini_epoch to True if this is undesired."
)
self.samples_per_mini_epoch = max(available_samples - 1, 1)
self.samples_per_mini_epoch = max(available_samples, 1)
else:
logger.info("Sufficient available samples in the time range specified")
else:
Expand Down
Loading