siibra 1.0.1a5__py3-none-any.whl → 1.0.1a8__py3-none-any.whl

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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1-alpha.5
1
+ 1.0.1-alpha.8
@@ -84,17 +84,20 @@ class LayerwiseCellDensity(
84
84
  )
85
85
  fields = cellfile.split("/")
86
86
  for layer in layer_volumes.index:
87
- data.append({
88
- 'layer': layer,
89
- 'layername': layers["Name"].loc[layer],
90
- 'counts': counts.loc[layer],
91
- 'area_mu2': layers["Area(micron**2)"].loc[layer],
92
- 'volume': layer_volumes.loc[layer],
93
- 'density': counts.loc[layer] / layer_volumes.loc[layer],
94
- 'regionspec': fields[-5],
95
- 'section': int(fields[-3]),
96
- 'patch': int(fields[-2]),
97
- })
87
+ try:
88
+ data.append({
89
+ 'layer': layer,
90
+ 'layername': layers["Name"].loc[layer],
91
+ 'counts': counts.loc[layer],
92
+ 'area_mu2': layers["Area(micron**2)"].loc[layer],
93
+ 'volume': layer_volumes.loc[layer],
94
+ 'density': counts.loc[layer] / layer_volumes.loc[layer],
95
+ 'regionspec': fields[-5],
96
+ 'section': int(fields[-3]),
97
+ 'patch': int(fields[-2]),
98
+ })
99
+ except KeyError:
100
+ continue
98
101
  return pd.DataFrame(data)
99
102
 
100
103
  @property
@@ -31,7 +31,8 @@ class Location(BrainStructure):
31
31
  """
32
32
 
33
33
  # backend for transforming coordinates between spaces
34
- SPACEWARP_SERVER = "https://hbp-spatial-backend.apps.hbp.eu/v1"
34
+ # for detail, see https://github.com/HumanBrainProject/hbp-spatial-backend
35
+ SPACEWARP_SERVER = "https://siibra-spatial-backend.apps.ebrains.eu/v1"
35
36
 
36
37
  # lookup of space identifiers to be used by SPACEWARP_SERVER
37
38
  SPACEWARP_IDS = {
@@ -370,10 +370,9 @@ class Map(concept.AtlasConcept, configuration_folder="maps"):
370
370
  if kwargs_fragment is not None:
371
371
  if (mapindex.fragment is not None) and (kwargs_fragment != mapindex.fragment):
372
372
  raise exceptions.ConflictingArgumentException(
373
- "Conflicting specifications for fetching volume fragment: "
374
- f"{mapindex.fragment} / {kwargs_fragment}"
373
+ f"Conflicting specifications for fetching volume fragment{f' for region {region}'}: "
374
+ f"supplied: {kwargs_fragment}, preconfigured: {mapindex.fragment}"
375
375
  )
376
- mapindex.fragment = kwargs_fragment
377
376
 
378
377
  if mapindex.volume is None:
379
378
  mapindex.volume = 0
@@ -387,7 +386,7 @@ class Map(concept.AtlasConcept, configuration_folder="maps"):
387
386
  return _volume.FilteredVolume(
388
387
  parent_volume=self.volumes[mapindex.volume],
389
388
  label=mapindex.label,
390
- fragment=mapindex.fragment,
389
+ fragment=kwargs_fragment or mapindex.fragment,
391
390
  )
392
391
 
393
392
  def fetch(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: siibra
3
- Version: 1.0.1a5
3
+ Version: 1.0.1a8
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)
@@ -1,4 +1,4 @@
1
- siibra/VERSION,sha256=ipm-gM9pHLEb5l5Cx8ZcZ8wKJBYKiaWH87grIEoJ_OM,14
1
+ siibra/VERSION,sha256=dmqTQ9qMHhodkJqBTHpXdWezVzO2JGnokqQCVhTeAZM,14
2
2
  siibra/__init__.py,sha256=1uWhsE93KG4N9wiWoMdEokUXxfoRcyznXDktjAGhpEI,4496
3
3
  siibra/commons.py,sha256=KmbRdX6pfKTgIgbYufxhkE9YiLQ35GObbw6VyFdRm_w,28016
4
4
  siibra/exceptions.py,sha256=6MlXOadwXcCsceOE4lmy4fLJyAaBCCVvJF6BZlMYjU8,1371
@@ -37,7 +37,7 @@ siibra/features/tabular/cell_density_profile.py,sha256=ScpjD9W-w-lLxdG6q42Zfyqe8
37
37
  siibra/features/tabular/cortical_profile.py,sha256=x0TqZh8FzcVx13EwPtbt8kBYfF1dREWWuf9BhpWzj7o,12542
38
38
  siibra/features/tabular/gene_expression.py,sha256=8gJuUrL13oIySOPgiy5j46a5Udae_cJ1_QfrUHA72CI,10309
39
39
  siibra/features/tabular/layerwise_bigbrain_intensities.py,sha256=iFCNG641yCSuIXFTY30xgRQqLERDHMqJrAy3SdKkAJ4,2118
40
- siibra/features/tabular/layerwise_cell_density.py,sha256=MYFiUfDfx6XQj8dezV5-3eKWBg0VOn0T3a1utELE2PM,6513
40
+ siibra/features/tabular/layerwise_cell_density.py,sha256=nMgREMddxff-nW43wnLGfaYTDaapiSu2z2vyHfaUm0M,6640
41
41
  siibra/features/tabular/receptor_density_fingerprint.py,sha256=CvFJv940whxzavhEQWnTjueDEq0ZoiuYVpqUpR8t-Ec,8065
42
42
  siibra/features/tabular/receptor_density_profile.py,sha256=VW2Ry8ifQLfmiBDKqIdvaN7K1YzMENGU92Lnm4wA8P0,3724
43
43
  siibra/features/tabular/regional_timeseries_activity.py,sha256=wuno4oI1I-dyxRr8-tLFj42iaD6dYZiPigCqVMhrG50,10027
@@ -50,7 +50,7 @@ siibra/livequeries/query.py,sha256=P_uUVFxv4KyOPQXh2WnDQxuaSSBK_dXPKEr8I0-4xSQ,1
50
50
  siibra/locations/__init__.py,sha256=yTJVMdv-pICm_gUYLQ09lDKSkZBfgUihM6LNv07e_yk,3546
51
51
  siibra/locations/boundingbox.py,sha256=ACRittMABMZwLPzGnv5Z5E6cIHJfCFWv851s5Bg87WQ,16442
52
52
  siibra/locations/experimental.py,sha256=kd9yroLKpnY-N6hoMVgtHK4pVdgeGqhpad4GyxYy6LU,14484
53
- siibra/locations/location.py,sha256=tb__0td1c7_3BKJFqqEqwspO5m8BZ8ZlyYwvtVBq8SY,4706
53
+ siibra/locations/location.py,sha256=ay2UoyQZdnzdCMAwpK-evnnzx4DCVEhbQRz55EzerfI,4792
54
54
  siibra/locations/point.py,sha256=cL2hqbejec24ZoXpbBQQXtHZ-H7KcyxnbITzSBjkXTs,12675
55
55
  siibra/locations/pointcloud.py,sha256=AxtR43xG4i1hUXNmal4F_g5WKQo_A1ZtW4l4jsf3p6o,14108
56
56
  siibra/retrieval/__init__.py,sha256=E-UA8rDQZFGkHmAcmit6siONo7G2mH_Y0xgLlR1RfvY,1062
@@ -64,7 +64,7 @@ siibra/vocabularies/gene_names.json,sha256=i-gnh753GyZtQfX_dWibNYr_d5ccDPHooOwsd
64
64
  siibra/vocabularies/receptor_symbols.json,sha256=F6DZIArPCBmJV_lWGV-zDpBBH_GOJOZm67LBE4qzMa4,5722
65
65
  siibra/vocabularies/region_aliases.json,sha256=T2w1wRlxPNTsPppXn0bzC70tNsb8mOjLsoHuxDSYm2w,8563
66
66
  siibra/volumes/__init__.py,sha256=9eiVjgGTqq9BiFJaLVLABtTrhIcE2k3Cn51yC4EKplg,936
67
- siibra/volumes/parcellationmap.py,sha256=z5wWxK_kcFpS_ROpc9ny4aCbM7P9qc3DRDxrOKGp2Hk,51409
67
+ siibra/volumes/parcellationmap.py,sha256=M1ZGEWZ0owDcP5O9yrsZr8HloQa1knZzbI9g-v4rcYo,51430
68
68
  siibra/volumes/sparsemap.py,sha256=Yv07LIlt5yigw-ubWFq89hHnsivT7dymYCsCTe7Wu9I,17167
69
69
  siibra/volumes/volume.py,sha256=wLmtqoXBDoPvE3WBO_Hc8uny3cdE9mB0KgdCq0LOTa0,32408
70
70
  siibra/volumes/providers/__init__.py,sha256=AHZCjutCqO4mnHxyykVjqxlz85jDqFWcSjsa4ciwc1A,934
@@ -73,8 +73,8 @@ siibra/volumes/providers/gifti.py,sha256=JGuixlSJTVjbDU_M5oMDCV8BAwIzuczhnI-qZ7L
73
73
  siibra/volumes/providers/neuroglancer.py,sha256=b3TiJ6yrx_akLFKgHRKZyHculzzRIqbZ7U3TMQHy6-k,28618
74
74
  siibra/volumes/providers/nifti.py,sha256=aAzkmeDZaXRZ-dkAeEb2cSywNn9WzIz0z7yFtN6iNpU,10135
75
75
  siibra/volumes/providers/provider.py,sha256=Vn02au_LKynO5SIfqLyjqzxCf7JD9Wm4i7yEFcTX0WU,3585
76
- siibra-1.0.1a5.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
77
- siibra-1.0.1a5.dist-info/METADATA,sha256=CO_Qej2SZ4h9saebuTGGPQLhPZOI4PQE4xSEHKVqKl4,9301
78
- siibra-1.0.1a5.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
79
- siibra-1.0.1a5.dist-info/top_level.txt,sha256=NF0OSGLL0li2qyC7MaU0iBB5Y9S09_euPpvisD0-8Hg,7
80
- siibra-1.0.1a5.dist-info/RECORD,,
76
+ siibra-1.0.1a8.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
77
+ siibra-1.0.1a8.dist-info/METADATA,sha256=Gn0sAsS0D8fMfA0Zvlw8VScF18At_CnN_wJU2lc6h6c,9301
78
+ siibra-1.0.1a8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
79
+ siibra-1.0.1a8.dist-info/top_level.txt,sha256=NF0OSGLL0li2qyC7MaU0iBB5Y9S09_euPpvisD0-8Hg,7
80
+ siibra-1.0.1a8.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.3.1)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5