Skip to content

Commit

Permalink
Modify notebook structure
Browse files Browse the repository at this point in the history
  • Loading branch information
gmzsebastian committed Oct 31, 2023
1 parent 45d7d5f commit 2ca7597
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ channels:
dependencies:
# Base dependencies
- pip
- python>=3.10
- python>=3.8
- jupyter
- Cython
- esutil # installed from conda because you need the pre-compiled binaries.
Expand Down
2 changes: 1 addition & 1 deletion environment_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ channels:
dependencies:
# Base dependencies
- pip
- python>=3.10
- python>=3.8
- jupyter
- Cython
- esutil # installed from conda because you need the pre-compiled binaries.
Expand Down
56 changes: 28 additions & 28 deletions notebooks/STIPS Advanced II - PSFs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "b6d71c53",
"id": "b7d8a799",
"metadata": {},
"source": [
"# STIPS Advanced II – PSFs, Adding Sources\n",
Expand All @@ -15,7 +15,7 @@
},
{
"cell_type": "markdown",
"id": "4bc7a0d4",
"id": "01058e9b",
"metadata": {},
"source": [
"## Checking STIPS Import, Adding Modules\n",
Expand All @@ -26,7 +26,7 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "775c25da",
"id": "f880413e",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -69,7 +69,7 @@
{
"cell_type": "code",
"execution_count": 2,
"id": "2c65f50b",
"id": "647e7df4",
"metadata": {},
"outputs": [
{
Expand All @@ -87,7 +87,7 @@
},
{
"cell_type": "markdown",
"id": "2e7c5f3a",
"id": "4ac75c0b",
"metadata": {},
"source": [
"## Generating and Manipulating a PSF\n",
Expand All @@ -98,7 +98,7 @@
{
"cell_type": "code",
"execution_count": 3,
"id": "07fa1b96",
"id": "739a6b99",
"metadata": {},
"outputs": [
{
Expand All @@ -122,7 +122,7 @@
}
],
"source": [
"example_file = fits.open('psf_WFI_2.0.0_F129_sca01.fits')\n",
"example_file = fits.open('notebooks_data/psf_WFI_2.0.0_F129_sca01.fits')\n",
"\n",
"test_psf = stips.utilities.makePSF.make_epsf(example_file[0].data[0])\n",
"\n",
Expand All @@ -131,7 +131,7 @@
},
{
"cell_type": "markdown",
"id": "e578f35a",
"id": "c5db07e4",
"metadata": {},
"source": [
"We can view a plot of our generated PSF using pyplot."
Expand All @@ -140,7 +140,7 @@
{
"cell_type": "code",
"execution_count": 4,
"id": "ff1669b8",
"id": "ceb3bacf",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -724,15 +724,15 @@
},
{
"cell_type": "markdown",
"id": "152f0032",
"id": "52555418",
"metadata": {},
"source": [
"The PSF can be manipulated in a variety of ways –– for purposes of this tutorial, we will perform a bicubic interpolation on our PSF, as well as calculate the fraction of light that should fall on a given pixel. This will employ two of makePSFs primary functions, ```makePSF.bicubic``` and ```makePSF.real_psf```."
]
},
{
"cell_type": "markdown",
"id": "153047e8",
"id": "367cbf14",
"metadata": {},
"source": [
"### Bicubic Interpolation\n",
Expand All @@ -748,7 +748,7 @@
{
"cell_type": "code",
"execution_count": 5,
"id": "5420ad47",
"id": "d8aed62d",
"metadata": {},
"outputs": [
{
Expand All @@ -771,7 +771,7 @@
},
{
"cell_type": "markdown",
"id": "d152d26f",
"id": "5a5185c9",
"metadata": {},
"source": [
"Noted in the image below is the location at which the interpolation was performed (cropped for visibility)."
Expand All @@ -780,7 +780,7 @@
{
"cell_type": "code",
"execution_count": 4,
"id": "75f9153d",
"id": "2f91efdc",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1282,7 +1282,7 @@
},
{
"cell_type": "markdown",
"id": "1ebeb4ec",
"id": "c57f6030",
"metadata": {},
"source": [
"### Fractional Light\n",
Expand All @@ -1302,7 +1302,7 @@
{
"cell_type": "code",
"execution_count": 7,
"id": "c80b7c91",
"id": "166cb74d",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1332,7 +1332,7 @@
},
{
"cell_type": "markdown",
"id": "cd5d0253",
"id": "17a68f5a",
"metadata": {},
"source": [
"Noted below is the location at which fractional light was evaluated."
Expand All @@ -1341,7 +1341,7 @@
{
"cell_type": "code",
"execution_count": 5,
"id": "52038cc3",
"id": "7ee864a2",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -1834,7 +1834,7 @@
},
{
"cell_type": "markdown",
"id": "c5e0432d",
"id": "93c07523",
"metadata": {},
"source": [
"## Adding New Sources to a Scene\n",
Expand All @@ -1855,7 +1855,7 @@
},
{
"cell_type": "markdown",
"id": "d21a2c63",
"id": "97fcf13a",
"metadata": {},
"source": [
"### Original Scene\n",
Expand All @@ -1866,7 +1866,7 @@
{
"cell_type": "code",
"execution_count": 7,
"id": "3088442d",
"id": "dbdf67cc",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -2285,7 +2285,7 @@
},
{
"cell_type": "markdown",
"id": "f1f3ba1f",
"id": "66fdb367",
"metadata": {},
"source": [
"### Add New Source\n",
Expand All @@ -2296,7 +2296,7 @@
{
"cell_type": "code",
"execution_count": 8,
"id": "80546ce0",
"id": "8e044af7",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -2313,7 +2313,7 @@
},
{
"cell_type": "markdown",
"id": "2858999a",
"id": "ce53eaae",
"metadata": {},
"source": [
"We can now open our modified image and view our added source."
Expand All @@ -2322,7 +2322,7 @@
{
"cell_type": "code",
"execution_count": 9,
"id": "4d2f93fd",
"id": "32c7efa6",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -2775,7 +2775,7 @@
},
{
"cell_type": "markdown",
"id": "e0430d27",
"id": "fed4caaa",
"metadata": {},
"source": [
"## Conclusion\n",
Expand All @@ -2786,7 +2786,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -2800,7 +2800,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.7.4"
}
},
"nbformat": 4,
Expand Down
File renamed without changes.

0 comments on commit 2ca7597

Please sign in to comment.