Skip to content

Commit

Permalink
Both acs_reduction and acs_sbc_dark_analysis notebooks should be fixe…
Browse files Browse the repository at this point in the history
…d and work accordingly in the next run. Pyraf removed for acs_reduction, and intentType added for observations.query_criteria in acs_sbc...
  • Loading branch information
alyssaguzman committed Jan 21, 2025
1 parent 3e8b6cc commit 742177d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion notebooks/ACS/acs_reduction/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ astroquery>=0.4.6
stwcs>=1.7.2
crds>=11.17.0
matplotlib>=3.7.0
pyraf

22 changes: 17 additions & 5 deletions notebooks/ACS/acs_sbc_dark_analysis/acs_sbc_dark_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,25 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {
"nbpresent": {
"id": "6c8b2858-62fe-40bd-a114-8257661e0b0b"
}
},
"outputs": [],
"outputs": [
{
"ename": "ModuleNotFoundError",
"evalue": "No module named 'astroquery'",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[0;32mIn[1], line 8\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mmatplotlib\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mpyplot\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m \u001b[38;5;21;01mplt\u001b[39;00m\n\u001b[1;32m 6\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m \u001b[38;5;21;01mnumpy\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m \u001b[38;5;21;01mnp\u001b[39;00m\n\u001b[0;32m----> 8\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mastroquery\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mmast\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m Observations\n\u001b[1;32m 9\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mdrizzlepac\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mastrodrizzle\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m AstroDrizzle \u001b[38;5;28;01mas\u001b[39;00m adriz\n\u001b[1;32m 11\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mastropy\u001b[39;00m\u001b[38;5;21;01m.\u001b[39;00m\u001b[38;5;21;01mio\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m fits\n",
"\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'astroquery'"
]
}
],
"source": [
"import os\n",
"import shutil\n",
Expand Down Expand Up @@ -171,7 +183,7 @@
"metadata": {},
"outputs": [],
"source": [
"darks_list = Observations.query_criteria(proposal_id='13961', obstype='cal')\n",
"darks_list = Observations.query_criteria(proposal_id='13961', intentType='calibration')\n",
"\n",
"drk_dl_table = Observations.download_products(darks_list['obsid'],\n",
" productSubGroupDescription=[\n",
Expand Down Expand Up @@ -748,7 +760,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "sbcdrk",
"language": "python",
"name": "python3"
},
Expand All @@ -762,7 +774,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.7"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 742177d

Please sign in to comment.