From 03ffc72a1e833f1af5de3a7e25e76db6e3dc02c3 Mon Sep 17 00:00:00 2001 From: Hatice Karatay Date: Wed, 20 Dec 2023 15:38:34 -0500 Subject: [PATCH] Fix more styles --- .../isha_nayak_ysos_in_the_lmc.ipynb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/notebooks/MIRI_IFU_YSOs_in_the_LMC/isha_nayak_ysos_in_the_lmc.ipynb b/notebooks/MIRI_IFU_YSOs_in_the_LMC/isha_nayak_ysos_in_the_lmc.ipynb index 353cf602d..e18cddaf4 100644 --- a/notebooks/MIRI_IFU_YSOs_in_the_LMC/isha_nayak_ysos_in_the_lmc.ipynb +++ b/notebooks/MIRI_IFU_YSOs_in_the_LMC/isha_nayak_ysos_in_the_lmc.ipynb @@ -61,8 +61,7 @@ "\n", "from specutils import Spectrum1D, SpectralRegion\n", "from specutils.analysis import snr\n", - "from specutils.fitting import fit_generic_continuum, find_lines_derivative\n", - "from specutils.manipulation import box_smooth, extract_region" + "from specutils.fitting import fit_generic_continuum, find_lines_derivative" ] }, { @@ -461,8 +460,7 @@ " plt.imshow(cont_img.value, origin='lower')\n", " plt.tight_layout()\n", " plt.show()\n", - " plt.close()\n", - " " + " plt.close()" ] }, { @@ -1084,10 +1082,10 @@ " 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", - " print(\"This is a Class 2 YSO.\")\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", " if (count_pah > 0 and not drop_dups_ice) or (count_pah > 0 and drop_dups_sil):\n",