Skip to content

Error loading 'Lew_Sa3_DSM_QinA.h5' #224

Description

@jamescrake-merani

The following error occurs when I try to load 'Lew_Sa3_DSM_QinA.h5'

2026-08-25 09:49:14,558 : ERROR : sas.qtgui.Perspectives.Fitting.FittingWidget (FittingWidget.py:192) :: Traceback (most recent call last):
  File "/Users/james/python/sasview/src/sas/refactored_data_explorer.py", line 153, in onLoadFile
    loaded_data = load_hdf5_data(filename)
  File "/Users/james/python/sasview/.venv/lib/python3.13/site-packages/sasdata/temp_hdf5_reader.py", line 425, in load_data
    metadata = parse_metadata(f[root_key])
  File "/Users/james/python/sasview/.venv/lib/python3.13/site-packages/sasdata/temp_hdf5_reader.py", line 380, in parse_metadata
    instrument = parse_instrument(node[keys[0]]) if keys else None
                 ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/Users/james/python/sasview/.venv/lib/python3.13/site-packages/sasdata/temp_hdf5_reader.py", line 306, in parse_instrument
    source = parse_source(node[keys[0]]) if keys is not None else None
                               ~~~~^^^
IndexError: list index out of range

This appears to be an issue with the metadata being read.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions