Skip to content

Commit

Permalink
zarr logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- committed Mar 24, 2022
1 parent ebad8ea commit 1216033
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions activitysim/core/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,19 @@ def skim_dataset():
logger.info(f"found zarr skims, loading them")
d = sh.dataset.from_zarr_with_attr(zarr_file).max_float_precision(max_float_precision)
else:
if zarr_file:
logger.info(f"did not find zarr skims, loading omx")
d = sh.dataset.from_omx_3d(
[openmatrix.open_file(f) for f in omx_file_paths],
time_periods=time_periods,
max_float_precision=max_float_precision,
)
if zarr_file:
if zarr_digital_encoding:
import zarr # ensure zarr is available before we do all this work.
# apply once, before saving to zarr, will stick around in cache
for encoding in zarr_digital_encoding:
logger.info(f"applying zarr digital-encoding: {encoding}")
regex = encoding.pop('regex', None)
joint_dict = encoding.pop('joint_dict', None)
if joint_dict:
Expand Down

0 comments on commit 1216033

Please sign in to comment.