Skip to content

Add image data#14

Merged
DanPorter merged 3 commits intomasterfrom
add_image_data
Feb 7, 2025
Merged

Add image data#14
DanPorter merged 3 commits intomasterfrom
add_image_data

Conversation

@DanPorter
Copy link
Copy Markdown
Collaborator

Add support for detectors with image_data file paths, plus improvements to NeXus defaults and other stuff.

hdf_loader.py

  • added standard arguments 'swmr=True' and 'libver=latest' to h5py.File usages.

hdfmap_class.py

  • removed several unused 'info_...' funcitons, replaced with 'info_names(...)'
  • added first_last_scannables function
  • added 'numeric_only' option to get_scannables
  • improved doc strings

nexus.py

  • improved info_nexus output
  • renamed 'nexus_defaults' to 'nexus_default_paths'
  • added 'nexus_default_names'
  • added collection of 'image_data' filename detector datasets, image_data now may contain paths to non-numeric datasets (docs updated)
  • get_plot_data improved using new functions.

test_edge_cases.py

  • added additional edge case files and regenerated test_files.json

pypi-publish.yml

  • updated to v4 of the artifact actions to fix depreciation error

DanPorter and others added 3 commits January 22, 2025 10:07
Initial go at adding support, doesn't currently load TIFF files.

Need to decide whether to add TIFF reader or amend docs and typing to return image filenames.

What to do with multi-dimensional scans with filenames?

Commit currently non-functional work in progress. Do not merge to main branch.
hdf_loader.py
 - added standard arguments 'swmr=True' and 'libver=latest' to h5py.File usages.

hdfmap_class.py
 - removed several unused 'info_...' funcitons, replaced with 'info_names(...)'
 - added first_last_scannables function
 - added 'numeric_only' option to get_scannables
 - improved doc strings

nexus.py
 - improved info_nexus output
 - renamed 'nexus_defaults' to 'nexus_default_paths'
 - added 'nexus_default_names'
 - added collection of 'image_data' filename detector datasets, image_data now may contain paths to non-numeric datasets (docs updated)
 - get_plot_data improved using new functions.

test_edge_cases.py
 - added additional edge case files and regenerated test_files.json

 pypi-publish.yml
  - updated to v4 of the artifact actions to fix depreciation error
@DanPorter DanPorter merged commit ac95cdd into master Feb 7, 2025
@DanPorter DanPorter deleted the add_image_data branch February 7, 2025 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant