Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address errors related to dependencies #141

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}