Skip to content

Commit

Permalink
Merge pull request #849 from neutrons/fix_mantid67_error
Browse files Browse the repository at this point in the history
catch runtimeerror for mantid 67
  • Loading branch information
fanchercm authored Jul 21, 2023
2 parents feb7392 + 257b60f commit 4a2e508
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions pyrs/core/nexus_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,13 @@ def __split_property(self, runObj, log_name, log_array_size):
else:
try:
split_log[:] = runObj.getPropertyAsSingleValue(log_name)
except RuntimeError:
if isinstance(log_property.value, str):
split_log[:] = log_property.value
elif isinstance(log_property.value, list):
split_log[:] = log_property.value[0]
else:
raise RuntimeError('Cannot filter log "{}" of type "{}"'.format(log_name, log_dtype))
except ValueError:
if isinstance(log_property.value, str):
split_log[:] = log_property.value
Expand Down
2 changes: 1 addition & 1 deletion pyrs/interface/manual_reduction/pyrs_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def reduce_hidra_workflow(nexus, output_dir, progressbar, instrument=None, calib

# process the data
converter = NeXusConvertingApp(nexus, mask)
hidra_ws = converter.convert(use_mantid=False)
hidra_ws = converter.convert()

# Update
if progressbar:
Expand Down

1 comment on commit 4a2e508

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitLab pipeline for pyrs-dev has been submitted for this commit: "https://code.ornl.gov/sns-hfir-scse/deployments/pyrs-deploy/-/pipelines/420845"

Please sign in to comment.