Skip to content

Commit

Permalink
Add time scoping in hdf5 example (#1346)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafacanton authored Jan 12, 2024
1 parent 909eaa8 commit d67612c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/05-file-IO/02-hdf5_serialize_and_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d67612c

Please sign in to comment.