siibra 1.0a11__tar.gz → 1.0a19__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of siibra might be problematic. Click here for more details.
- {siibra-1.0a11/siibra.egg-info → siibra-1.0a19}/PKG-INFO +1 -1
- siibra-1.0a19/siibra/VERSION +1 -0
- {siibra-1.0a11 → siibra-1.0a19}/siibra/__init__.py +12 -2
- {siibra-1.0a11 → siibra-1.0a19}/siibra/commons.py +4 -3
- {siibra-1.0a11 → siibra-1.0a19}/siibra/configuration/__init__.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/configuration/configuration.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/configuration/factory.py +164 -117
- {siibra-1.0a11 → siibra-1.0a19}/siibra/core/__init__.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/core/assignment.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/core/atlas.py +4 -3
- {siibra-1.0a11 → siibra-1.0a19}/siibra/core/concept.py +18 -9
- {siibra-1.0a11 → siibra-1.0a19}/siibra/core/parcellation.py +9 -3
- {siibra-1.0a11 → siibra-1.0a19}/siibra/core/region.py +35 -65
- {siibra-1.0a11 → siibra-1.0a19}/siibra/core/space.py +3 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/core/structure.py +1 -2
- {siibra-1.0a11 → siibra-1.0a19}/siibra/exceptions.py +9 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/explorer/__init__.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/explorer/url.py +15 -0
- {siibra-1.0a11 → siibra-1.0a19}/siibra/explorer/util.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/__init__.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/anchor.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/connectivity/__init__.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/connectivity/functional_connectivity.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/connectivity/regional_connectivity.py +5 -3
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/connectivity/streamline_counts.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/connectivity/streamline_lengths.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/connectivity/tracing_connectivity.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/dataset/__init__.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/dataset/ebrains.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/feature.py +42 -15
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/image/__init__.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/image/image.py +18 -13
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/image/sections.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/image/volume_of_interest.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/tabular/__init__.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/tabular/bigbrain_intensity_profile.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/tabular/cell_density_profile.py +5 -3
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/tabular/cortical_profile.py +5 -3
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/tabular/gene_expression.py +2 -2
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/tabular/layerwise_bigbrain_intensities.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/tabular/layerwise_cell_density.py +5 -3
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/tabular/receptor_density_fingerprint.py +5 -3
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/tabular/receptor_density_profile.py +5 -3
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/tabular/regional_timeseries_activity.py +5 -3
- {siibra-1.0a11 → siibra-1.0a19}/siibra/features/tabular/tabular.py +5 -3
- {siibra-1.0a11 → siibra-1.0a19}/siibra/livequeries/__init__.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/livequeries/allen.py +9 -6
- {siibra-1.0a11 → siibra-1.0a19}/siibra/livequeries/bigbrain.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/livequeries/ebrains.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/livequeries/query.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/locations/__init__.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/locations/boundingbox.py +51 -17
- {siibra-1.0a11 → siibra-1.0a19}/siibra/locations/location.py +12 -4
- {siibra-1.0a11 → siibra-1.0a19}/siibra/locations/point.py +10 -5
- {siibra-1.0a11 → siibra-1.0a19}/siibra/locations/pointset.py +45 -11
- {siibra-1.0a11 → siibra-1.0a19}/siibra/retrieval/__init__.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/retrieval/cache.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/retrieval/datasets.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/retrieval/exceptions/__init__.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/retrieval/repositories.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/retrieval/requests.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/vocabularies/__init__.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/volumes/__init__.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/volumes/parcellationmap.py +38 -18
- {siibra-1.0a11 → siibra-1.0a19}/siibra/volumes/providers/__init__.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/volumes/providers/freesurfer.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/volumes/providers/gifti.py +1 -1
- {siibra-1.0a11 → siibra-1.0a19}/siibra/volumes/providers/neuroglancer.py +7 -7
- {siibra-1.0a11 → siibra-1.0a19}/siibra/volumes/providers/nifti.py +8 -4
- {siibra-1.0a11 → siibra-1.0a19}/siibra/volumes/providers/provider.py +2 -2
- {siibra-1.0a11 → siibra-1.0a19}/siibra/volumes/sparsemap.py +7 -4
- {siibra-1.0a11 → siibra-1.0a19}/siibra/volumes/volume.py +114 -16
- {siibra-1.0a11 → siibra-1.0a19/siibra.egg-info}/PKG-INFO +1 -1
- siibra-1.0a11/siibra/VERSION +0 -1
- {siibra-1.0a11 → siibra-1.0a19}/LICENSE +0 -0
- {siibra-1.0a11 → siibra-1.0a19}/MANIFEST.in +0 -0
- {siibra-1.0a11 → siibra-1.0a19}/README.rst +0 -0
- {siibra-1.0a11 → siibra-1.0a19}/setup.cfg +0 -0
- {siibra-1.0a11 → siibra-1.0a19}/setup.py +0 -0
- {siibra-1.0a11 → siibra-1.0a19}/siibra/experimental/__init__.py +0 -0
- {siibra-1.0a11 → siibra-1.0a19}/siibra/experimental/contour.py +0 -0
- {siibra-1.0a11 → siibra-1.0a19}/siibra/experimental/cortical_profile_sampler.py +0 -0
- {siibra-1.0a11 → siibra-1.0a19}/siibra/experimental/patch.py +0 -0
- {siibra-1.0a11 → siibra-1.0a19}/siibra/experimental/plane3d.py +0 -0
- {siibra-1.0a11 → siibra-1.0a19}/siibra/vocabularies/gene_names.json +0 -0
- {siibra-1.0a11 → siibra-1.0a19}/siibra/vocabularies/receptor_symbols.json +0 -0
- {siibra-1.0a11 → siibra-1.0a19}/siibra/vocabularies/region_aliases.json +0 -0
- {siibra-1.0a11 → siibra-1.0a19}/siibra.egg-info/SOURCES.txt +0 -0
- {siibra-1.0a11 → siibra-1.0a19}/siibra.egg-info/dependency_links.txt +0 -0
- {siibra-1.0a11 → siibra-1.0a19}/siibra.egg-info/requires.txt +0 -0
- {siibra-1.0a11 → siibra-1.0a19}/siibra.egg-info/top_level.txt +0 -0
- {siibra-1.0a11 → siibra-1.0a19}/test/test_siibra.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: siibra
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.0a19
|
|
4
4
|
Summary: siibra - Software interfaces for interacting with brain atlases
|
|
5
5
|
Home-page: https://github.com/FZJ-INM1-BDA/siibra-python
|
|
6
6
|
Author: Big Data Analytics Group, Forschungszentrum Juelich, Institute of Neuroscience and Medicine (INM-1)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.0a19
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright 2018-
|
|
1
|
+
# Copyright 2018-2024
|
|
2
2
|
# Institute of Neuroscience and Medicine (INM-1), Forschungszentrum Jülich GmbH
|
|
3
3
|
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -107,6 +107,14 @@ def set_feasible_download_size(maxsize_gbyte):
|
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
def set_cache_size(maxsize_gbyte: int):
|
|
110
|
+
"""
|
|
111
|
+
siibra runs maintainance on its local cache to keep it under a predetermined
|
|
112
|
+
size of 2 gigabytes. This method changes the cache size.
|
|
113
|
+
|
|
114
|
+
Parameters
|
|
115
|
+
----------
|
|
116
|
+
maxsize_gbyte : int
|
|
117
|
+
"""
|
|
110
118
|
assert maxsize_gbyte >= 0
|
|
111
119
|
cache.SIZE_GIB = maxsize_gbyte
|
|
112
120
|
logger.info(f"Set cache size to {maxsize_gbyte} GiB.")
|
|
@@ -150,5 +158,7 @@ def __dir__():
|
|
|
150
158
|
"vocabularies",
|
|
151
159
|
"__version__",
|
|
152
160
|
"cache",
|
|
153
|
-
"warm_cache"
|
|
161
|
+
"warm_cache",
|
|
162
|
+
"set_cache_size",
|
|
163
|
+
"from_json",
|
|
154
164
|
]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright 2018-
|
|
1
|
+
# Copyright 2018-2024
|
|
2
2
|
# Institute of Neuroscience and Medicine (INM-1), Forschungszentrum Jülich GmbH
|
|
3
3
|
|
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -35,6 +35,7 @@ except ImportError:
|
|
|
35
35
|
# support python 3.7
|
|
36
36
|
from typing_extensions import TypedDict
|
|
37
37
|
|
|
38
|
+
logging.addLevelName(21, "INFO_WO_PROGRESS_BARS")
|
|
38
39
|
logger = logging.getLogger(__name__.split(os.path.extsep)[0])
|
|
39
40
|
ch = logging.StreamHandler()
|
|
40
41
|
formatter = logging.Formatter("[{name}:{levelname}] {message}", style="{")
|
|
@@ -51,7 +52,7 @@ SIIBRA_LOG_LEVEL = os.getenv("SIIBRA_LOG_LEVEL", "INFO")
|
|
|
51
52
|
SIIBRA_USE_CONFIGURATION = os.getenv("SIIBRA_USE_CONFIGURATION")
|
|
52
53
|
SIIBRA_USE_LOCAL_SNAPSPOT = os.getenv("SIIBRA_USE_LOCAL_SNAPSPOT")
|
|
53
54
|
SKIP_CACHEINIT_MAINTENANCE = os.getenv("SKIP_CACHEINIT_MAINTENANCE")
|
|
54
|
-
SIIBRA_MAX_FETCH_SIZE_GIB = os.getenv("SIIBRA_MAX_FETCH_SIZE_GIB", 0.2)
|
|
55
|
+
SIIBRA_MAX_FETCH_SIZE_GIB = float(os.getenv("SIIBRA_MAX_FETCH_SIZE_GIB", 0.2))
|
|
55
56
|
|
|
56
57
|
with open(os.path.join(ROOT_DIR, "VERSION"), "r") as fp:
|
|
57
58
|
__version__ = fp.read().strip()
|
|
@@ -297,7 +298,7 @@ def siibra_tqdm(iterable: Iterable[T] = None, *args, **kwargs):
|
|
|
297
298
|
return tqdm(
|
|
298
299
|
iterable,
|
|
299
300
|
*args,
|
|
300
|
-
disable=kwargs.pop("disable", False) or (logger.level >
|
|
301
|
+
disable=kwargs.pop("disable", False) or (logger.level > logging.INFO),
|
|
301
302
|
**kwargs
|
|
302
303
|
)
|
|
303
304
|
|