Skip to content

Commit

Permalink
Address errors related to dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
haticekaratay committed Sep 11, 2023
1 parent 47a5aae commit b88f88f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
14 changes: 7 additions & 7 deletions notebooks/composite_model_fitting/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
numpy==1.17.2
astropy==4.0
matplotlib==3.1.1
scipy==1.3.3
photutils==0.7.2
scikit-image==0.16.2
specutils==1.0
numpy==1.25.2
astropy==5.3.3
matplotlib==3.7.2
scipy==1.11.2
photutils==1.9.0
scikit-image==0.21.0
specutils==1.11.0
29 changes: 16 additions & 13 deletions notebooks/composite_model_fitting/specfit_demo_3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@
"\n",
"Versions:\n",
"\n",
" - Astropy Version: 3.2.3\n",
" - Numpy Version: 1.17.3\n",
" - Specutils Version: 0.6\n",
" - Matplotlib Version: 3.1.2"
" - Astropy Version: 5.3.3\n",
" - Numpy Version: 1.25.2\n",
" - Specutils Version: 1.11.0\n",
" - Matplotlib Version: 3.7.2"
]
},
{
Expand Down Expand Up @@ -218,7 +218,7 @@
"outputs": [],
"source": [
"def mask_from_regions(spectrum,regions):\n",
" mask = np.zeros(spectrum.spectral_axis.shape,dtype=np.bool)\n",
" mask = np.zeros(spectrum.spectral_axis.shape,dtype=np.bool_)\n",
" for r in regions:\n",
" submask = (spectrum.spectral_axis>r.lower) & (spectrum.spectral_axis<=r.upper)\n",
" mask = mask | submask\n",
Expand Down Expand Up @@ -361,9 +361,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"compound_model = models.model1"
Expand Down Expand Up @@ -686,9 +684,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"ylim = (-2.e-13, 2.e-13)\n",
Expand Down Expand Up @@ -736,6 +732,13 @@
"ax.legend(loc='upper right',fontsize='small')\n",
"ax.set_title(\"Data and models\");"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -755,9 +758,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.10"
"version": "3.11.5"
}
},
"nbformat": 4,
"nbformat_minor": 1
"nbformat_minor": 4
}

0 comments on commit b88f88f

Please sign in to comment.