Skip to content

Commit

Permalink
More logging and pytest.ini for investigating flaky ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbjoernl committed Jan 7, 2025
1 parent 229b055 commit 950f094
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyaerocom/io/mscw_ctm/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,8 @@ def _open_file(self):
start_date = min([x for x in [start_date, file_start_date] if x is not None])
end_date = max([x for x in [file_end_date, file_end_date] if x is not None])

logger.debug(f"******* Found enddate, start_date: {end_date}, {start_date}")
logger.debug(f"{(end_date - start_date) / np.timedelta64(1, "h")}")
if (end_date - start_date) / np.timedelta64(1, "h") > (366 * 24):
raise ValueError(
f"ts_type {ts_type} can not be hourly when using multiple years ({start_date} - {end_date})"
Expand Down

0 comments on commit 950f094

Please sign in to comment.