Skip to content

Bump xnat from 0.7.2 to 0.8.0#63

Merged
vladd-bit merged 1 commit into
mainfrom
dependabot/uv/xnat-0.8.0
Jun 22, 2026
Merged

Bump xnat from 0.7.2 to 0.8.0#63
vladd-bit merged 1 commit into
mainfrom
dependabot/uv/xnat-0.8.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 19, 2026

Copy link
Copy Markdown
Contributor

Bumps xnat from 0.7.2 to 0.8.0.

Release notes

Sourced from xnat's releases.

0.8.0 - 2026-05-26

Added

  • Adds a progress bar to uploads (default for files, not for streams/plain data as of yet)
  • Add a calculate_digest and verify_digest function to FileData objects to make sure their md5 hash in the database matches the hash of the file data.
  • Added create_resource method to ExperimentData for consistency and ease of use.
  • Added expected_data_dir and expected_data_path that are versions of data_dir and data_path that do not verify the file/directory existence on disk, but show where the file should be located.
  • New data integrity checking script. It works well on most levels, but still does not work with merged experiments where the scan ID is not reflected on disk, as well as some SECONDARY resources where the directory on disk does not match the resource label.
  • The services.import_ now accepts parameters for ignore_unparsable and direct_archive. A warning will be given if the XNAT version is too low to support the parameter (and it will not be passed).

Fixed

  • Fixes bug in resource.upload_dir with method per_file on Windows
  • Rewrite resource.upload_dir to avoid code duplication

Updated

  • The caching of objects for creation now uses weak-refs, also parents objects using weak-refs allowing the memory to be freed when a clearcache() is called. All non (otherwise) referenced objects down in the object tree loose their reference and get properly cleared.
  • The parent property in XNATBaseObject now uses a weakref in hope of causing less memory blocking
  • More aggressive caching for created objects to avoid request spamming when traversing files within resources.
  • Updated logging; logger now has an extera verbose loglevel in between info and debug to keep the debug level only for actual debugging, but still allow extra information. This allows lower level progress to be moved to verbose to free up the info level for high-level notifications that do not warrant a warning. The default log level is now info, whereas the verbose loglevel now is more similar to the previous info level.
  • Updated the data_dir and data_path to work with local mount directly to archive folders. There is a (auto-detected) variable to control the type of mount directory
  • The client-side search connection.search now also allows a callable filter function to be used for more powerful search without having to use lower-level mapping function.
  • The connection.map and project.map now update the signal handler for SIGINT so that a SIGINT now stops the map loop gracefully after the current item finished processing.
  • Add a timeout argument to services.import_ and services.import_dir to set timeouts specifically for the importer. XNAT only sends the 200 response after the import handler finished, leading to hanging connections (see issue #77)
Changelog

Sourced from xnat's changelog.

0.8.0 - 2026-05-26

Added


- Adds a progress bar to uploads (default for files, not for streams/plain data as of yet)
- Add a ``calculate_digest`` and ``verify_digest`` function to FileData objects to make sure their md5 hash
  in the database matches the hash of the file data.
- Added ``create_resource`` method to ``ExperimentData`` for consistency and ease of use.
- Added ``expected_data_dir`` and ``expected_data_path`` that are versions of ``data_dir`` and ``data_path``
  that do not verify the file/directory existence on disk, but show where the file should be located.
- New data integrity checking script. It works well on most levels, but still does not work with merged
  experiments where the scan ID is not reflected on disk, as well as some SECONDARY resources where the
  directory on disk does not match the resource label.
- The `services.import_` now accepts parameters for `ignore_unparsable` and `direct_archive`. A warning
  will be given if the XNAT version is too low to support the parameter (and it will not be passed).

Fixed

  • Fixes bug in resource.upload_dir with method per_file on Windows
  • Rewrite resource.upload_dir to avoid code duplication

Updated


- The caching of objects for creation now uses weak-refs, also parents objects using weak-refs allowing
  the memory to be freed when a clearcache() is called. All non (otherwise) referenced objects down in the
  object tree loose their reference and get properly cleared.
- The parent property in ``XNATBaseObject`` now uses a weakref in hope of causing less memory blocking
- More aggressive caching for created objects to avoid request spamming when traversing files within
  resources.
- Updated logging; logger now has an extera ``verbose`` loglevel in between ``info`` and ``debug`` to
  keep the ``debug`` level only for actual debugging, but still allow extra information. This allows
  lower level progress to be moved to ``verbose`` to free up the ``info`` level for high-level notifications
  that do not warrant a ``warning``. The default log level is now ``info``, whereas the ``verbose`` loglevel now
  is more similar to the previous ``info`` level.
- Updated the ``data_dir`` and ``data_path`` to work with local mount directly to
  archive folders. There is a (auto-detected) variable to control the type of
  mount directory
- The client-side search ``connection.search`` now also allows a callable filter function to be
  used for more powerful search without having to use lower-level mapping function.
- The ``connection.map`` and ``project.map`` now update the signal handler for SIGINT so that
  a SIGINT now stops the map loop gracefully after the current item finished processing.
- Add a ``timeout`` argument to ``services.import_`` and ``services.import_dir`` to set timeouts
  specifically for the importer. XNAT only sends the 200 response after the import handler finished,
  leading to hanging connections (see issue [#77](https://gitlab.com/radiology/infrastructure/xnatpy/issues/77))
Commits
  • 9029297 Merge branch 'develop' into 'master'
  • fd5f805 Prepare the 0.8.0 release
  • 53a6222 Merge branch 'BIG-3992-add-testing-for-fields' into 'develop'
  • e57f958 Resolve BIG-3992 "Add testing for fields"
  • 7aa66d9 Update the readthedocs image
  • 8d74d7a Merge branch 'feature/import_update' into 'develop'
  • 355f81e Update import service
  • 065d931 Merge branch 'feature/weakref' into 'develop'
  • a187135 Make the general object creation cache weakref based, so objects are only kep...
  • 29999ec Make it possible to change the timeout for early requests before the connecti...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [xnat](https://gitlab.com/radiology/infrastructure/xnatpy) from 0.7.2 to 0.8.0.
- [Release notes](https://gitlab.com/radiology/infrastructure/xnatpy/tags)
- [Changelog](https://gitlab.com/radiology/infrastructure/xnatpy/blob/master/CHANGELOG)
- [Commits](https://gitlab.com/radiology/infrastructure/xnatpy/compare/0.7.2...0.8.0)

---
updated-dependencies:
- dependency-name: xnat
  dependency-version: 0.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Jun 19, 2026
@vladd-bit vladd-bit merged commit 5b4f09a into main Jun 22, 2026
8 of 11 checks passed
@vladd-bit vladd-bit deleted the dependabot/uv/xnat-0.8.0 branch June 22, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant