Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing Notebook Bugs #26

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions notebooks/aperture_photometry/aperture_photometry.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"import asdf\n",
"from astropy.io import fits\n",
"from astropy.table import Table\n",
"import copy\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import photutils\n",
Expand Down Expand Up @@ -103,7 +104,7 @@
}
},
"source": [
"We obtain data from S3 buckets by using `s3fs`. **NOTE THAT THIS PART NEEDS TO BE TESTED ON THE ACTUAL SCIENCE PLATFORM BEFORE MERGING.**"
"We obtain data from S3 buckets by using `s3fs`."
]
},
{
Expand All @@ -128,8 +129,8 @@
"\n",
"with fs.open(asdf_file_uri, 'rb') as f:\n",
" dm = rdm.open(f)\n",
" asdf_file.data.value.copy()\n",
" wcs = asdf_file.meta.wcs.copy()"
" image = dm.data.value.copy()\n",
" wcs = copy.deepcopy(dm.meta.wcs)"
]
},
{
Expand All @@ -149,7 +150,7 @@
"metadata": {},
"outputs": [],
"source": [
"catalog_fname = asdf_dir_uri + 'ROMANISIM/CATALOGS_SCRIPTS/fullcat_101M_pared_ra0.50_dec0.50_WFI01.ecsv'\n",
"catalog_file_uri = asdf_dir_uri + 'ROMANISIM/CATALOGS_SCRIPTS/fullcat_101M_pared_ra0.50_dec0.50_WFI01.ecsv'\n",
"with fs.open(catalog_file_uri) as catalog_file_stream:\n",
" cat = Table.read(catalog_fname)"
]
Expand Down
Loading