Releases: scalableminds/webknossos-libs
Releases · scalableminds/webknossos-libs
v2.0.7
v2.0.6
v2.0.5
v2.0.4
v2.0.3
Release for v2.0.3
v2.0.2
v2.0.1
webknossos
Added
- Added
get_remote_annotations()to AnnotationInfo class to get a list of all remote Annotations of the current user. #1262
Fixed
v2.0.0
webknossos
Breaking Changes
- Changed writing behavior. There is a new argument
allow_resizeforMagView.write, which defaults toFalse. If set toTrue, the bounding box of the underlyingLayerwill be resized to fit the to-be-written data. That largely mirrors the previous behavior. However, it is not safe for concurrent operations, so it is disabled by default. It is recommended to set theLayer.bounding_boxto the desired size before writing. Additionally, by default, writes need to be aligned with the underlying shard grid to guard against concurrency issues and avoid performance footguns. There is a new argumentallow_unaligned, which defaults toFalse. If set toTrue, the check for shard alignment is skipped. - Deprecated
chunks_per_shardarguments in favor ofshard_shape, which equals toshard_shape = chunk_shape * chunks_per_shard. The shard shape is more intuitive, because it directly defines the size of shards instead of being a factor of the chunk shape. - Deprecated
dtype_per_layerargument, because it promotes the use of uncommon dtypes and leads to confusion with the otherdtype_per_channelargument. With this change only the use ofdtype_per_channelis encouraged. - Removed deprecated functions, properties and arguments:
- Functions:
open_annotation, useAnnotation.load()insteadDataset.get_color_layer, useDataset.get_color_layers()insteadDataset.get_segmentation_layer, useDataset.get_segmentation_layers()insteadDataset.create, useDataset.__init__insteadDataset.get_or_create, useDataset.__init__withexist_ok=TrueinsteadLayer.get_best_mag, useLayer.get_finest_maginsteadView.read_bbox, usereadwithrelative_bounding_boxorabsolute_bounding_boxinsteadView.__enter__andView.__exit__, context managers are not needed anymoreopen_nml, useSkeleton.load()insteadGroup.add_graph, useGroup.add_treeinsteadGroup.get_max_graph_id, useGroup.get_max_tree_idinsteadGroup.flattened_graphs, useGroup.flattened_treesinsteadGroup.get_graph_by_id, useGroup.get_tree_by_idinsteadSkeleton.from_path, useSkeleton.load()insteadSkeleton.write, useSkeleton.save()instead
- Properties:
Annotation.username, useAnnotation.owner_nameinsteadAnnotation.scale, useAnnotation.voxel_sizeinsteadAnnotation.user_id, useAnnotation.owner_idinsteadArrayInfo.shard_size, useArrayInfo.shard_shapeinsteadDataset.scale, useDataset.voxel_sizeinsteadMagView.global_offset, always(0, 0, 0, ...)MagView.size, usemag_view.bounding_box.in_mag(mag_view.mag).bottomrightMagViewProperties.resolution, useMagViewProperties.maginsteadLayerProperties.resolutions, useLayerProperties.magsinsteadView.header, useView.infoinsteadView.global_offset, useview.bounding_box.in_mag(view.mag).topleftinsteadView.size, useview.bounding_box.in_mag(view.mag).sizeinsteadGroup.graphs, useGroup.treesSkeleton.scale, useSkeleton.voxel_sizeinstead
- Arguments:
annotation_typeinAnnotation.download, not needed anymoreannotation_typeinAnnotation.open_as_remote_dataset, not needed anymoresizeinBufferedSliceReader.__init__, userelative_bounding_boxorabsolute_bounding_boxinsteadoffsetinBufferedSliceReader.__init__, userelative_bounding_boxorabsolute_bounding_boxinsteadoffsetinBufferedSliceWriter.__init__, userelative_bounding_boxorabsolute_bounding_boxinsteadjson_update_allowedinBufferedSliceWriter.__init__, not supported anymoreoffsetinBufferedSliceWriter.reset_offset, userelative_offsetorabsolute_offsetinsteadscaleinDataset.__init__, usevoxel_sizeorvoxel_size_with_unitinsteaddtypeinDataset.add_layer, usedtype_per_channelinsteaddtypeinDataset.get_or_add_layer, usedtype_per_channelinsteadchunk_sizeinDataset.add_layer_from_images, usechunk_shapeinsteadchunk_sizeinDataset.copy_dataset, usechunk_shapeinsteadblock_leninDataset.copy_dataset, usechunk_shapeinsteadfile_leninDataset.copy_dataset, usechunks_per_shardinsteadargsinDataset.copy_dataset, useexecutorinsteadchunk_sizeinLayer.add_mag, usechunk_shapeinsteadblock_leninLayer.add_mag, usechunk_shapeinsteadfile_leninLayer.add_mag, usechunks_per_shardinsteadchunk_sizeinLayer.get_or_add_mag, usechunk_shapeinsteadblock_leninLayer.get_or_add_mag, usechunk_shapeinsteadfile_leninLayer.get_or_add_mag, usechunks_per_shardinsteadargsinLayer.downsample, useexecutorinsteadargsinLayer.downsample_mag, useexecutorinsteadargsinLayer.redownsample, useexecutorinsteadargsinLayer.downsample_mag_list, useexecutorinsteadargsinLayer.downsample_mag_list, useexecutorinsteadbuffer_edge_leninLayer.upsample, usebuffer_shapeinsteadargsinLayer.upsample, useexecutorinsteadmin_maginLayer.upsample, usefinest_maginsteadoffsetinMagView.write, userelative_offset,absolute_offset,relative_bounding_box, orabsolute_bounding_boxinsteadjson_update_allowedinMagView.write, useallow_resizeinsteadargsinMagView.compress, useexecutorinsteadoffsetinView.write, userelative_offset,absolute_offset,relative_bounding_box, orabsolute_bounding_boxinsteadjson_update_allowedinView.write, not supported anymoreoffsetinView.read, userelative_offset,absolute_offset,relative_bounding_box, orabsolute_bounding_boxinsteadoffsetinView.get_view, userelative_offset,absolute_offset,relative_bounding_box, orabsolute_bounding_boxinsteadoffsetinView.get_buffered_slice_writer, userelative_offset,absolute_offset,relative_bounding_box, orabsolute_bounding_boxinsteadoffsetinView.get_buffered_slice_reader, userelative_bounding_box, orabsolute_bounding_boxinsteadsizeinView.get_buffered_slice_reader, userelative_bounding_box, orabsolute_bounding_boxinsteadchunk_sizeinView.for_each_chunk, usechunk_shapeinsteadsource_chunk_sizeinView.for_zipped_chunks, usesource_chunk_shapeinsteadtarget_chunk_sizeinView.for_zipped_chunks, usetarget_chunk_shapeinsteadargsinView.content_is_equal, useexecutorinstead
- Classes:
Graph, useTreeinstead
- Functions:
- Changed defaults:
exist_okinDataset.__init__is nowFalsecompressinDataset.from_imagesis nowTruecompressinDataset.add_layer_from_imagesis nowTrueDEFAULT_DATA_FORMATis nowZarr3compressinLayer.add_magis nowTruecompressinLayer.upsampleis nowTruebuffer_sizeinView.get_buffered_slice_readeris now computed from the shard shapebuffer_sizeinView.get_buffered_slice_writeris now computed from the shard shape
- Moved from positional argument to keyword-only argument:
json_update_allowedinMagView.writeorganization_id,sharing_token,webknossos_url,bbox,layers,mags,path,exist_okinDataset.downloadlayers_to_link,jobsinDataset.uploaddtype_per_layer,dtype_per_channel,num_channels,data_format,bounding_boxinDataset.add_layerdtype_per_layer,dtype_per_channel,num_channels,data_formatinDataset.get_or_add_layerdata_format,mag,chunk_shape,chunks_per_shard,shard_shape,compressinDataset.add_layer_from_imageschunk_shape,shard_shape,chunks_per_shard,data_format,compress,executorinDataset.add_copy_layerorganization_id,tags,name,folder_idinDataset.get_remote_datasetsmake_relativeinDataset.add_symlink_layername,make_relative,layers_to_ignoreinDataset.shallow_copy_datasetexecutorinDataset.compresssampling_mode,coarsest_mag,executorinDataset.downsamplevoxel_size,chunk_shape,shard_shape,chunks_per_shard,data_format,compress,executor,voxel_size_with_unitinDataset.copy_datasetchunk_shape,shard_shape,chunks_per_shard,compressinLayer.add_magchunk_shape,shard_shape,chunks_per_shard,compressinLayer.get_or_add_magextend_layer_bounding_box,chunk_shape,shard_shape,chunks_per_shard,compress,executorinLayer.add_copy_magmake_relative,extend_layer_bounding_boxinLayer.add_symlink_magextend_layer_bounding_boxinLayer.add_remote_magextend_layer_bounding_boxinLayer.add_fs_copy_magmove,extend_layer_bounding_boxinLayer.add_mag_from_zarrarrayfrom_mag,coarsest_mag,interpolation_mode,compress,sampling_mode,align_with_other_layers,buffer_shape,force_sampling_scheme,allow_overwrite,only_setup_mags,executorinLayer.downsampleinterpolation_mode,compress,buffer_shape,allow_overwrite,only_setup_mag,executorinLayer.downsample_maginterpolation_mode,compress,buffer_shape,executorinLayer.redownsampleinterpolation_mode,compress,buffer_shape,allow_overwrite,only_setup_mags,executorinLayer.downsample_mag_listfinest_mag,compress,sampling_mode,align_with_other_layers,buffer_shape,executorinLayer.upsamplechunk_shape,executorin `SegmentationLayer.refresh_la...
v0.16.10
Release for v0.16.10