Skip to content

Commit

Permalink
print times of new file
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 3, 2022
1 parent d7c08c6 commit e491080
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions satip/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1081,6 +1081,10 @@ def collate_files_into_latest(save_dir: str, using_backup: bool = False):
f"{save_dir}/latest/hrv_tmp.zarr.zip",
filename,
)
new_times = xr.open_dataset(f'zip::{filename}',engine="zarr",cache=False).time
logger.debug(f'{new_times}')



filename = f"{save_dir}/latest/latest{'_15' if using_backup else ''}.zarr.zip"
logger.debug(f"Collating non-HRV files {filename}")
Expand Down Expand Up @@ -1108,6 +1112,9 @@ def collate_files_into_latest(save_dir: str, using_backup: bool = False):
filename,
)

new_times = xr.open_dataset(f'zip::{filename}',engine="zarr",cache=False).time
logger.debug(f'{new_times}')


# Cell
def set_up_logging(
Expand Down

0 comments on commit e491080

Please sign in to comment.