Skip to content

Commit

Permalink
Merge pull request #742 from javerbukh/add_cutout_option_to_nb
Browse files Browse the repository at this point in the history
Add information about adding cutouts in notebook
  • Loading branch information
pllim authored Jul 26, 2021
2 parents 82de5f1 + fb002a3 commit e29b827
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions notebooks/MosvizExample.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,13 @@
" elif 's2d' in file_path:\n",
" spectra_2d.append(file_path)\n",
"\n",
"images = [str(level3_path / 'mosviz_cutouts' / '227.fits')] * len(spectra_1d)"
"images = [str(level3_path / 'mosviz_cutouts' / '227.fits')] * len(spectra_1d)\n",
"\n",
"# *** OR ***\n",
"# If images are available in a cutouts directory, uncomment the following lines.\n",
"# Please make sure the number of cutouts matches the number of x1d and s2d files.\n",
"\n",
"# images = [file_path for file_path in glob.iglob(str(level3_path / 'cutouts' / '*'))]\n"
]
},
{
Expand Down Expand Up @@ -220,7 +226,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -234,7 +240,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.3"
"version": "3.8.10"
}
},
"nbformat": 4,
Expand Down

0 comments on commit e29b827

Please sign in to comment.