Skip to content

Commit

Permalink
Address dependency issues on transit spectrosc nb (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
haticekaratay authored Sep 12, 2023
1 parent 838975e commit 14c6729
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,13 +293,13 @@
"plt.cmap = plt.cm.magma\n",
"plt.cmap.set_bad('k',1.)\n",
"plt.rcParams['image.cmap'] = 'magma' # Colormap.\n",
"plt.rcParams['image.interpolation'] = None\n",
"plt.rcParams['image.interpolation'] = 'none'\n",
"plt.rcParams['image.origin'] = 'lower'\n",
"plt.rcParams['font.family'] = \"monospace\"\n",
"plt.rcParams['font.monospace'] = 'DejaVu Sans Mono'\n",
"\n",
"img=all_spec[:,:,expnum]\n",
"zeros=np.where(img <= 0) #Plot on a log scale, so set zero or negitive values to a small number \n",
"zeros=np.where(img <= 0) #Plot on a log scale, so set zero or negative values to a small number \n",
"img[zeros]=1E-10\n",
"fig,axs = plt.subplots()\n",
"f=axs.imshow(np.log10(img),vmin=0) #Plot image\n",
Expand Down Expand Up @@ -357,7 +357,7 @@
"plt.cmap = plt.cm.magma\n",
"plt.cmap.set_bad('k',1.)\n",
"plt.rcParams['image.cmap'] = 'magma' # Colormap.\n",
"plt.rcParams['image.interpolation'] = None\n",
"plt.rcParams['image.interpolation'] = 'none'\n",
"plt.rcParams['image.origin'] = 'lower'\n",
"plt.rcParams['font.family'] = \"monospace\"\n",
"plt.rcParams['font.monospace'] = 'DejaVu Sans Mono'\n",
Expand Down Expand Up @@ -1696,7 +1696,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.11.5"
}
},
"nbformat": 4,
Expand Down
16 changes: 8 additions & 8 deletions notebooks/transit_spectroscopy_notebook/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
lmfit==1.0.0
scikit-learn==0.22.1
numpy==1.18.1
scipy==1.4.1
joblib==0.14.1
matplotlib==3.3.1
astropy==4.0.1.post1
pandas==1.1.2
lmfit==1.2.2
scikit-learn==1.3.0
numpy==1.25.2
scipy==1.11.2
joblib==1.3.2
matplotlib==3.7.3
astropy==5.3.3
pandas==2.1.0

0 comments on commit 14c6729

Please sign in to comment.