Skip to content

Commit

Permalink
Update tutorials to siibra-python v1.0a22
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmetNSimsek committed Dec 17, 2024
1 parent 400a1a4 commit 89d568d
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion 01-BasicConcepts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"source": [
"import siibra\n",
"from packaging.version import Version\n",
"assert Version(siibra.__version__) >= Version('1.0a14')\n",
"assert Version(siibra.__version__) >= Version('1.0a22')\n",
"import os\n",
"import matplotlib\n",
"%matplotlib inline"
Expand Down
2 changes: 1 addition & 1 deletion 02-DataFeatures.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"source": [
"import siibra\n",
"from packaging.version import Version\n",
"assert Version(siibra.__version__) >= Version('1.0a14')"
"assert Version(siibra.__version__) >= Version('1.0a22')"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions 03-ProbabilisticAssignment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"source": [
"import siibra\n",
"from packaging.version import Version\n",
"assert Version(siibra.__version__) >= Version('1.0a14')\n",
"assert Version(siibra.__version__) >= Version('1.0a22')\n",
"\n",
"from nilearn import plotting\n",
"import matplotlib.pyplot as plt\n",
Expand All @@ -31,7 +31,7 @@
"outputs": [],
"source": [
"# These are copy-pasted from the interactive atlas viewer:\n",
"points = siibra.PointSet(\n",
"points = siibra.(\n",
" (\n",
" [-25.65, -2.75, -33.75],\n",
" [-37.35, -81.05, -6.3],\n",
Expand Down
2 changes: 1 addition & 1 deletion 04-DifferentialGeneExpressions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"source": [
"import siibra, siibra_jugex\n",
"from packaging.version import Version\n",
"assert Version(siibra.__version__) >= Version('1.0a14')\n",
"assert Version(siibra.__version__) >= Version('1.0a22')\n",
"assert Version(siibra_jugex.__version__) >= Version(\"1.2\")"
]
},
Expand Down
2 changes: 1 addition & 1 deletion 05-CombinedWorkflow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"source": [
"import siibra\n",
"from packaging.version import Version\n",
"assert Version(siibra.__version__) >= Version('1.0a14')\n",
"assert Version(siibra.__version__) >= Version('1.0a22')\n",
"\n",
"import matplotlib.pyplot as plt\n",
"%matplotlib notebook"
Expand Down
4 changes: 2 additions & 2 deletions 06-CorticalPatchSampling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"source": [
"import siibra\n",
"from packaging.version import Version\n",
"assert Version(siibra.__version__) >= Version('1.0a17')\n",
"assert Version(siibra.__version__) >= Version('1.0a22')\n",
"import matplotlib.pyplot as plt\n",
"%matplotlib notebook\n",
"import numpy as np\n",
Expand Down Expand Up @@ -202,7 +202,7 @@
"l4layer = layers.get_region(f\"4 {hemisphere}\")\n",
"\n",
"# collect all layer IV contour points into one set\n",
"l4points = siibra.PointSet(\n",
"l4points = siibra.(\n",
" [p for contour in layer_contours[l4layer.name] for p in contour], \n",
" space='bigbrain'\n",
")\n",
Expand Down
4 changes: 2 additions & 2 deletions workshops/BigBrainWorkshop2023.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"source": [
"import siibra\n",
"from packaging.version import Version\n",
"assert Version(siibra.__version__) >= Version('1.0a17')"
"assert Version(siibra.__version__) >= Version('1.0a22')"
]
},
{
Expand Down Expand Up @@ -159,7 +159,7 @@
"outputs": [],
"source": [
"# we can directly instantiate a location object from the structure in siibra\n",
"# the annotation is cast to a siibra pointset.\n",
"# the annotation is cast to a siibra .\n",
"# Note that it has already the proper reference space encoded!\n",
"points = siibra.from_json(structure)\n",
"print(points)"
Expand Down
4 changes: 2 additions & 2 deletions workshops/HIBALL-winterschool-2023.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"source": [
"import siibra\n",
"from packaging.version import Version\n",
"assert Version(siibra.__version__) >= Version('1.0a17')\n",
"assert Version(siibra.__version__) >= Version('1.0a22')\n",
"\n",
"import matplotlib\n",
"from nilearn import plotting\n",
Expand Down Expand Up @@ -801,7 +801,7 @@
"outputs": [],
"source": [
"# We can plot the MNI coordinates to localize the measures and verify they are located in V1.\n",
"locations = siibra.PointSet(features[0].data.mni_xyz.tolist(), space=\"mni152\")\n",
"locations = siibra.(features[0].data.mni_xyz.tolist(), space=\"mni152\")\n",
"\n",
"from nilearn import plotting\n",
"mask = v1.get_regional_map(\"mni152\")\n",
Expand Down
2 changes: 1 addition & 1 deletion workshops/imb9345-2024.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"source": [
"import siibra as sb\n",
"from packaging.version import Version\n",
"assert Version(sb.__version__) >= Version('1.0a18')\n",
"assert Version(sb.__version__) >= Version('1.0a22')\n",
"from nilearn import plotting\n",
"import matplotlib.pyplot as plt\n",
"%matplotlib notebook"
Expand Down
2 changes: 1 addition & 1 deletion workshops/ohbm-2023-example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"source": [
"import siibra as sb\n",
"from packaging.version import Version\n",
"assert Version(sb.__version__) >= Version('1.0a18')\n",
"assert Version(sb.__version__) >= Version('1.0a22')\n",
"from nilearn import plotting\n",
"import matplotlib.pyplot as plt\n",
"%matplotlib notebook"
Expand Down

0 comments on commit 89d568d

Please sign in to comment.