Skip to content

Commit

Permalink
Merge pull request #12 from ornlneutronimaging/11_fix_notebooks
Browse files Browse the repository at this point in the history
Fixed notebooks. this refs #11
  • Loading branch information
KedoKudo authored Sep 18, 2024
2 parents 8374210 + 76efcb7 commit 54dd7c4
Show file tree
Hide file tree
Showing 15 changed files with 54 additions and 231 deletions.
6 changes: 3 additions & 3 deletions notebooks/debugging_multi_roi_bug.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -371,7 +371,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.2"
"version": "3.12.6"
},
"toc": {
"colors": {
Expand All @@ -394,5 +394,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 1
"nbformat_minor": 4
}
186 changes: 0 additions & 186 deletions notebooks/ipts-16259.ipynb

This file was deleted.

6 changes: 3 additions & 3 deletions notebooks/notebook_display_with_time_estimation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -183,7 +183,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.2"
"version": "3.12.6"
},
"toc": {
"colors": {
Expand All @@ -206,5 +206,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 1
"nbformat_minor": 4
}
6 changes: 3 additions & 3 deletions notebooks/testing_new_auto_gamma_filtering.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -229,7 +229,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.3"
"version": "3.12.6"
},
"toc": {
"colors": {
Expand All @@ -252,5 +252,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 1
"nbformat_minor": 4
}
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -333,7 +333,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.2"
"version": "3.12.6"
},
"toc": {
"colors": {
Expand All @@ -356,5 +356,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 1
"nbformat_minor": 4
}
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@
},
"outputs": [],
"source": [
"path_im = '/Volumes/my_book_thunderbolt_duo/IPTS/IPTS_19558/run_16/'\n",
"path_im = '../data/sample'\n",
"assert os.path.exists(path_im)\n",
"sample1 = path_im + '/Image016_00000.fits'\n",
"sample1 = path_im + '/0002.tif'\n",
"assert os.path.exists(sample1)\n",
"sample2 = path_im + '/Image016_00001.fits'\n",
"sample2 = path_im + '/0003.tif'\n",
"assert os.path.exists(sample2)"
]
},
Expand All @@ -157,9 +157,9 @@
},
"outputs": [],
"source": [
"path_ob = '/Volumes/my_book_thunderbolt_duo/IPTS/IPTS_19558/run_08_OB'\n",
"ob1 = path_ob + '/Image008_00000.fits'\n",
"ob2 = path_ob + '/Image008_00001.fits'\n",
"path_ob = '../data/ob'\n",
"ob1 = path_ob + '/0005.tif'\n",
"ob2 = path_ob + '/0006.tif'\n",
"assert os.path.exists(ob1)\n",
"assert os.path.exists(ob2)"
]
Expand Down Expand Up @@ -188,7 +188,7 @@
"outputs": [],
"source": [
"o_norm = Normalization()\n",
"o_norm.load(file=sample1, notebook=True)\n",
"o_norm.load(file=[sample1], notebook=True)\n",
"o_norm.load(file=[ob1, ob2], data_type='ob', notebook=True)"
]
},
Expand Down Expand Up @@ -234,8 +234,8 @@
"source": [
"x0 = 0\n",
"y0 = 0\n",
"width = 511\n",
"height = 511\n"
"width = 10\n",
"height = 15\n"
]
},
{
Expand Down Expand Up @@ -279,6 +279,15 @@
"normalized_data = o_norm.data['normalized']"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"o_norm.data"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -339,7 +348,7 @@
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python [default]",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -353,7 +362,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.3"
"version": "3.12.6"
},
"toc": {
"colors": {
Expand All @@ -376,5 +385,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 1
"nbformat_minor": 4
}
Loading

0 comments on commit 54dd7c4

Please sign in to comment.