Skip to content

Commit a84c8fd

Browse files
authored
Set t_min to first day of month for monthly resolution
Adjust t_min to the first day of the month based on schedule start date.
1 parent 3cdfd1a commit a84c8fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/virtualship/instruments/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,9 @@ def _find_files_in_timerange(
245245
)
246246

247247
if t_resolution == "monthly":
248-
t_min = schedule_start.date()
248+
t_min = schedule_start.date().replace(
249+
day=1
250+
) # first day of month of the schedule start date
249251
t_max = (
250252
schedule_end.date()
251253
+ timedelta(

0 commit comments

Comments
 (0)