Repository navigation
export_orientations_HDF5 no longer working #576
Copy link
Copy link
Closed
hpcflow/hpcflow
#1027Description
Consider the demo workflow sample_orientations_CRC_file.
The task stays on blue with matflow show -f, rather than showing 'error' for the task, but hpcflow gives the error message
===
Run ID: 0
Task: 0 ('sample_orientations_from_CRC_file_mtex')
Element: 0
Iteration: 0
Loop index: LoopIndex()
Action: 2 ('<<script:mtex/sample_orientations_CRC.m>>')
Traceback (most recent call last):
File "/home/mbexegc2/projects/lightform/iterative_sample_mtex/matflow-gui/.venv/lib/python3.13/site-packages/hpcflow/sdk/core/utils.py", line 1178, in redirect_std_to_file
yield fp
File "/home/mbexegc2/projects/lightform/iterative_sample_mtex/matflow-gui/.venv/lib/python3.13/site-packages/hpcflow/sdk/core/workflow.py", line 4883, in _execute_run
self.set_EAR_end(
~~~~~~~~~~~~~~~~^
block_act_key=block_act_key,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
run=run,
^^^^^^^^
exit_code=ret_code,
^^^^^^^^^^^^^^^^^^^
)
^
File "/home/mbexegc2/projects/lightform/iterative_sample_mtex/matflow-gui/.venv/lib/python3.13/site-packages/hpcflow/sdk/log.py", line 146, in wrapper
return func(*args, **kwargs)
File "/home/mbexegc2/projects/lightform/iterative_sample_mtex/matflow-gui/.venv/lib/python3.13/site-packages/hpcflow/sdk/core/workflow.py", line 3210, in set_EAR_end
run._param_save("script", block_act_key, run_dir)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/mbexegc2/projects/lightform/iterative_sample_mtex/matflow-gui/.venv/lib/python3.13/site-packages/hpcflow/sdk/core/actions.py", line 1254, in _param_save
param_cls.save_from_HDF5_group(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
h5_grp, param_id, self.workflow
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/mbexegc2/projects/lightform/matflow/matflow/param_classes/orientations.py", line 300, in save_from_HDF5_group
zarr.copy(
~~~~~~~~~^
source=group["data"],
^^^^^^^^^^^^^^^^^^^^^
...<2 lines>...
if_exists="replace",
^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/mbexegc2/projects/lightform/iterative_sample_mtex/matflow-gui/.venv/lib/python3.13/site-packages/zarr/convenience.py", line 874, in copy
_check_dest_is_group(dest)
~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/home/mbexegc2/projects/lightform/iterative_sample_mtex/matflow-gui/.venv/lib/python3.13/site-packages/zarr/convenience.py", line 745, in _check_dest_is_group
raise ValueError(f"dest must be a group, got {dest!r}")
ValueError: dest must be a group, got None
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
aplowman commentedon Sep 24, 2026
Should be fixed in this release: https://github.com/hpcflow/matflow/releases/tag/v0.4.0a11
gcapes commentedon Sep 24, 2026
Thanks - it's working for me with the latest matflow.