From d67612cb1ba5f058efcbe0fb64881d8f7032db64 Mon Sep 17 00:00:00 2001 From: Rafael Canton <107186344+rafacanton@users.noreply.github.com> Date: Fri, 12 Jan 2024 13:38:17 +0100 Subject: [PATCH] Add time scoping in hdf5 example (#1346) --- 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()