Skip to content

Commit

Permalink
Merge pull request #268 from camipacifici/fix-yso
Browse files Browse the repository at this point in the history
fix requirements for astropy
  • Loading branch information
camipacifici authored Jan 8, 2025
2 parents 047e272 + 3c90098 commit 7069a7b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Plot the summed image with WCS coordinates and save the figure\n",
"\n",
"**Developer note**: there is a bug in aplpy currently and `show_colorscale` does not work. We skip this cell and come back to this when the bug is fixed."
"### Plot the summed image with WCS coordinates and save the figure"
]
},
{
Expand All @@ -315,8 +313,10 @@
]
},
{
"cell_type": "raw",
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"F = aplpy.FITSFigure(cont_img.hdu, north=True)\n",
"F.show_colorscale()\n",
Expand Down Expand Up @@ -1089,9 +1089,9 @@
" elif count_pah == 0 and drop_dups_ice:\n",
" for i in range(0, count_ice):\n",
" if ((ice_absorption_detected[i].value < 4.87 and ice_absorption_detected[i].value > 4.47)\n",
" or (ice_absorption_detected[i].value < 5.8 and ice_absorption_detected[i].value > 6.2)\n",
" or (ice_absorption_detected[i].value < 6.69 and ice_absorption_detected[i].value > 7.09)\n",
" or (ice_absorption_detected[i].value < 7.5 and ice_absorption_detected[i].value > 7.7)):\n",
" or (ice_absorption_detected[i].value < 5.8 and ice_absorption_detected[i].value > 6.2)\n",
" or (ice_absorption_detected[i].value < 6.69 and ice_absorption_detected[i].value > 7.09)\n",
" or (ice_absorption_detected[i].value < 7.5 and ice_absorption_detected[i].value > 7.7)):\n",
" print(\"This is a Class 2 YSO.\")\n",
" \n",
" # Else if PAH emission features then YSO 3\n",
Expand Down Expand Up @@ -1146,6 +1146,13 @@
"plt.show()\n",
"plt.close()"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -1164,7 +1171,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.9"
"version": "3.11.11"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion notebooks/MIRI/MIRI_IFU_YSOs_in_the_LMC/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ specutils
aplpy
git+https://github.com/dendrograms/astrodendro.git
jupyter
astropy==5.3.4
astropy

0 comments on commit 7069a7b

Please sign in to comment.