From 6bd4107dfc8e9dde1b4ec5274a96735d1bf14a92 Mon Sep 17 00:00:00 2001 From: Rafael Canton Date: Fri, 12 Jan 2024 11:58:07 +0100 Subject: [PATCH] Add time scoping in hdf5 example --- examples/05-file-IO/02-hdf5_serialize_and_read.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/05-file-IO/02-hdf5_serialize_and_read.py b/examples/05-file-IO/02-hdf5_serialize_and_read.py index 54fc91bde8..69dae16476 100644 --- a/examples/05-file-IO/02-hdf5_serialize_and_read.py +++ b/examples/05-file-IO/02-hdf5_serialize_and_read.py @@ -95,6 +95,7 @@ res_deser_all_times_list = [] h5_read_op = dpf.operators.serialization.hdf5dpf_custom_read() h5_read_op.inputs.streams.connect(h5_stream_prov_op.outputs) +h5_read_op.inputs.time_scoping.connect(dpf.Scoping(ids = list(range(1,54)), location="time")) for i, res_name in enumerate(result_names_on_all_time_steps): h5_read_op.inputs.result_name.connect(res_name) res_deser = h5_read_op.outputs.field_or_fields_container_as_fields_container()