Skip to content

Commit

Permalink
Moved up python imports to fix os.environ for SCT
Browse files Browse the repository at this point in the history
  • Loading branch information
jcohenadad committed Jan 10, 2024
1 parent 73df6f2 commit 2a4c3d0
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions data_processing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,31 @@
{
"cell_type": "code",
"execution_count": null,
"id": "23ed8513",
"id": "4f78c5ea",
"metadata": {},
"outputs": [],
"source": [
"# Necessary imports\n",
"\n",
"import os\n",
"import re\n",
"import json\n",
"import subprocess\n",
"import glob\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import nibabel as nib\n",
"import pandas as pd\n",
"from scipy.interpolate import interp1d\n",
"from scipy.ndimage import uniform_filter1d\n",
"from scipy.stats import f_oneway\n",
"from statsmodels.stats.multicomp import pairwise_tukeyhsd"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "425724d9",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -84,7 +108,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "76ce58e9",
"id": "d774d3c0",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -102,7 +126,7 @@
{
"cell_type": "code",
"execution_count": null,
"id": "de61b330",
"id": "83822d93",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -115,30 +139,6 @@
"os.environ['PATH'] += f\":/content/spinalcordtoolbox/bin\""
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "4f78c5ea",
"metadata": {},
"outputs": [],
"source": [
"# Necessary imports\n",
"\n",
"import os\n",
"import re\n",
"import json\n",
"import subprocess\n",
"import glob\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import nibabel as nib\n",
"import pandas as pd\n",
"from scipy.interpolate import interp1d\n",
"from scipy.ndimage import uniform_filter1d\n",
"from scipy.stats import f_oneway\n",
"from statsmodels.stats.multicomp import pairwise_tukeyhsd"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 2a4c3d0

Please sign in to comment.