Skip to content

Extra features - #112

Open
gauravag99 wants to merge 8 commits into
toolsforexperiments:mainfrom
gauravag99:clean-pr
Open

gauravag99 wants to merge 8 commits into
toolsforexperiments:mainfrom
gauravag99:clean-pr

Conversation

@gauravag99

Copy link
Copy Markdown

Old functionality untouched.

Added:

  • DDH5_XR : New data pipeline from ddh5 <-> xarray. No data-dict layer in the middle. Also supports SWMR reading and writing to be compatible with autoplot here.
  • File archival ability to be able to save files in DatasetAnalysis. Be able to save the analysis code itself to make the fits reproducible.

gauravag99 and others added 8 commits June 18, 2026 17:43
… xarray conversion. SWMR reading and writing supported.
- ddh5_to_xarray and ddh5_to_gridded_ddh5 read the schema from the
  already-open file (new _schema_from_group) instead of reopening it via
  FileOpener, so no ~data.lock is created and a stale lock no longer
  blocks for up to 300 s. ddh5_schema's public behaviour is unchanged.
- DDH5SWMRReader raises immediately on an HDF5 signature error in a
  non-empty file instead of retrying until the timeout.
- New DDH5SWMRReader.file_locking class attribute (default None keeps
  h5py's behaviour). Read-only viewers can set it to False: on Windows a
  reader's HDF5 file lock makes a concurrent DDH5Writer_swmr crash.
- find_data skips folders whose names have no timestamp, with a warning,
  instead of raising.
- Tests for each case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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