Skip to content

Commit

Permalink
bugfix typo in time check
Browse files Browse the repository at this point in the history
  • Loading branch information
sadamov committed Dec 20, 2024
1 parent 94de240 commit 1d14a15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neural_lam/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ def check_time_overlap(
times_da2 = da2.time
time_step_da2 = get_time_step(times_da2.values)

time_min_da2 = da2.min().values
time_max_da2 = da2.max().values
time_min_da2 = times_da2.min().values
time_max_da2 = times_da2.max().values

# Calculate required bounds for da2 using its time step
da2_required_time_min = time_min_da1 - num_past_steps * time_step_da2
Expand Down

0 comments on commit 1d14a15

Please sign in to comment.