Skip to content

v3.0 beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@k1o0 k1o0 released this 16 Jan 16:49
9bc76fd

[3.0β]

Important

This is a pre-release and may not be stable

This version drops support for python 3.9 and below, and ONE is now in remote mode by default.
Also adds a new ALFPath class to replace alf path functions and now returns UUID objects instead of str.

Modified

  • supports python >= 3.10 only
  • OneAlyx uses remote mode by default, instead of auto
  • OneAlyx.search now updates the cache tables in remote mode as paginated sessions are accessed
  • datasets table file_size column nullable by default
  • one.alf.io.save_metadata now returns the saved filepath
  • paths returned by One methods and functions in one.alf.io are now ALFPath instances
  • bugfix: one.alf.path.full_path_parts didn't always raise when invalid path passed
  • one.alf.path module containing ALFPath class
  • ALF cache table generation has lower memory footprint
  • setup in silent mode now uses defaults if base url matches default one
  • bugfix: error downloading from http server with keep_uuids=True
  • one.alf.spec.readableALF and one.alf.spec._dromedary preserve plural acronyms, e.g. 'ROIs'
  • UUID objects returned by to_eid, search, and search_insertions instead of str
  • LazyId objects now handled correctly by One converter methods
  • LazyId object only returned when greater than 1 page of results
  • OneAlyx.search_insertions now updates local cache with query results
  • bugfix: OneAlyx.list_datasets behaves the same as One.list_datasets w.r.t. revisions and default datasets
  • default REST cache expiry reduced from 24 hours to 5 minutes

Added

  • one.alf.cache.remove_cache_table_files and One._remove_cache_table_files for deleting cache table files
  • one.alf.cache.EMPTY_DATASETS_FRAME and EMPTY_SESSION_FRAME vars for table column, index, and dtype template
  • pyproject.toml replaces deprecated setup file
  • one.alf.exceptions.InvalidALF exception
  • one.params.delete_params
  • One._search_insertions for offline query of insertions when cache table present

Removed

  • setup.py
  • one.alf.files; use one.alf.path instead
  • one.alf.io.remove_uuid_file
  • one.alf.io.remove_uuid_recursive
  • one.util.ensure_list; use iblutil.util.ensure_list instead
  • one.remote.globus.create_globus_client; use one.remote.globus.Globus class instead