Skip to content
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
8 changes: 4 additions & 4 deletions demo/demo1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"from astropy.io import fits\n",
"import torch\n",
"from matplotlib import pyplot as plt\n",
"from dfpsf.utils import twodgauss_multimodal\n",
"from dfpsf.utils import twodgauss_multimodal, convolve, twodgauss\n",
"from dfpsf.create_epsf import create_epsf\n",
"from dfpsf.doubleKernel.matchingPSF import optimize_psf_langevin, convolve, twodgauss\n",
"from dfpsf.doubleKernel.matchingPSF import optimize_psf_langevin\n",
"import numpy as np\n",
"import cmcrameri.cm as cmc\n",
"import timeit \n",
Expand Down Expand Up @@ -897,7 +897,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "astro",
"language": "python",
"name": "python3"
},
Expand All @@ -911,7 +911,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.13.9"
"version": "3.11.14"
}
},
"nbformat": 4,
Expand Down
48 changes: 9 additions & 39 deletions demo/ePSF-Creation/Toy1_noise.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions demo/ePSF-Creation/Toy2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "fc6819305015e1ea",
"metadata": {
"ExecuteTime": {
Expand All @@ -33,7 +33,7 @@
"import numpy as np\n",
"from matplotlib import pyplot as plt\n",
"from utils import make_2d_gaussian, analyze_psf\n",
"from dfspsf.create_espf import create_epsf\n",
"from dfpsf.create_epsf import create_epsf\n",
"import cmcrameri.cm as cmc\n"
]
},
Expand Down
4 changes: 2 additions & 2 deletions demo/ePSF-Creation/Toy2_noise.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "fc6819305015e1ea",
"metadata": {
"ExecuteTime": {
Expand All @@ -33,7 +33,7 @@
"import numpy as np\n",
"from matplotlib import pyplot as plt\n",
"from utils import make_2d_gaussian, analyze_psf\n",
"from dfspsf.create_espf import create_epsf\n"
"from dfpsf.create_epsf import create_epsf\n"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions demo/ePSF-Creation/Toy3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "fc6819305015e1ea",
"metadata": {
"ExecuteTime": {
Expand All @@ -33,7 +33,7 @@
"import numpy as np\n",
"from matplotlib import pyplot as plt\n",
"from utils import make_2d_rotated_gaussian, analyze_psf\n",
"from dfspsf.create_espf import create_epsf\n",
"from dfpsf.create_epsf import create_epsf\n",
"import cmcrameri.cm as cmc\n"
]
},
Expand Down
4 changes: 2 additions & 2 deletions demo/ePSF-Creation/Toy3_noise.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "fc6819305015e1ea",
"metadata": {
"ExecuteTime": {
Expand All @@ -33,7 +33,7 @@
"import numpy as np\n",
"from matplotlib import pyplot as plt\n",
"from utils import make_2d_rotated_gaussian, analyze_psf\n",
"from dfspsf.create_espf import create_epsf\n"
"from dfpsf.create_epsf import create_epsf\n"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions demo/ePSF-Creation/Toy4.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "fc6819305015e1ea",
"metadata": {
"ExecuteTime": {
Expand All @@ -33,7 +33,7 @@
"import numpy as np\n",
"from matplotlib import pyplot as plt\n",
"from utils import make_2d_rotated_gaussian, analyze_psf\n",
"from dfspsf.create_espf import create_epsf\n"
"from dfpsf.create_epsf import create_epsf\n"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions demo/ePSF-Creation/Toy4_noise.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "fc6819305015e1ea",
"metadata": {
"ExecuteTime": {
Expand All @@ -33,7 +33,7 @@
"import numpy as np\n",
"from matplotlib import pyplot as plt\n",
"from utils import make_2d_rotated_gaussian, analyze_psf\n",
"from dfspsf.create_espf import create_epsf\n"
"from dfpsf.create_epsf import create_epsf\n"
]
},
{
Expand Down
92 changes: 20 additions & 72 deletions demo/ePSF-Creation/Toy_paper.ipynb

Large diffs are not rendered by default.

Binary file modified demo/ePSF-Creation/toy_paper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 0 additions & 3 deletions src/dfpsf/tiling/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@

warnings.filterwarnings("ignore", module="astropy")
warnings.filterwarnings("ignore", module="photutils")
import logging
import multiprocessing as mp

import psutil

DEVICE = "cpu"

Expand Down