stdpipe 0.2.5__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. {stdpipe-0.2.5 → stdpipe-0.3.0}/.gitignore +3 -0
  2. {stdpipe-0.2.5/stdpipe.egg-info → stdpipe-0.3.0}/PKG-INFO +6 -3
  3. {stdpipe-0.2.5 → stdpipe-0.3.0}/pyproject.toml +10 -3
  4. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe/__init__.py +1 -1
  5. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe/astrometry.py +0 -1
  6. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe/catalogs.py +3 -4
  7. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe/cutouts.py +1 -2
  8. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe/db.py +0 -1
  9. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe/lcs.py +0 -1
  10. stdpipe-0.3.0/stdpipe/photometry.py +1337 -0
  11. stdpipe-0.3.0/stdpipe/photometry_iraf.py +853 -0
  12. stdpipe-0.3.0/stdpipe/photometry_measure.py +752 -0
  13. stdpipe-0.3.0/stdpipe/photometry_model.py +484 -0
  14. stdpipe-0.3.0/stdpipe/photometry_psf.py +505 -0
  15. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe/pipeline.py +0 -1
  16. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe/plots.py +431 -2
  17. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe/psf.py +127 -1
  18. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe/resolve.py +0 -1
  19. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe/subtraction.py +0 -1
  20. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe/templates.py +0 -1
  21. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe/utils.py +0 -1
  22. {stdpipe-0.2.5 → stdpipe-0.3.0/stdpipe.egg-info}/PKG-INFO +6 -3
  23. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe.egg-info/SOURCES.txt +8 -0
  24. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe.egg-info/requires.txt +6 -2
  25. stdpipe-0.3.0/tests/test_photometry.py +1147 -0
  26. stdpipe-0.3.0/tests/test_photometry_iraf.py +752 -0
  27. stdpipe-0.3.0/tests/test_photometry_measure.py +868 -0
  28. stdpipe-0.3.0/tests/test_photometry_model.py +42 -0
  29. stdpipe-0.3.0/tests/test_photometry_psf.py +687 -0
  30. stdpipe-0.3.0/tests/test_pipeline.py +668 -0
  31. stdpipe-0.2.5/stdpipe/photometry.py +0 -1363
  32. stdpipe-0.2.5/tests/test_photometry.py +0 -275
  33. stdpipe-0.2.5/tests/test_pipeline.py +0 -193
  34. {stdpipe-0.2.5 → stdpipe-0.3.0}/LICENSE.md +0 -0
  35. {stdpipe-0.2.5 → stdpipe-0.3.0}/MANIFEST.in +0 -0
  36. {stdpipe-0.2.5 → stdpipe-0.3.0}/README.md +0 -0
  37. {stdpipe-0.2.5 → stdpipe-0.3.0}/setup.cfg +0 -0
  38. {stdpipe-0.2.5 → stdpipe-0.3.0}/setup.py +0 -0
  39. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe/data/legacysurvey.py +0 -0
  40. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe/data/legacysurvey_bricks.fits.gz +0 -0
  41. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe/data/ps1skycells.txt +0 -0
  42. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe/data/ps1skycells.txt.orig +0 -0
  43. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe.egg-info/dependency_links.txt +0 -0
  44. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe.egg-info/not-zip-safe +0 -0
  45. {stdpipe-0.2.5 → stdpipe-0.3.0}/stdpipe.egg-info/top_level.txt +0 -0
  46. {stdpipe-0.2.5 → stdpipe-0.3.0}/tests/test_astrometry.py +0 -0
  47. {stdpipe-0.2.5 → stdpipe-0.3.0}/tests/test_catalogs.py +0 -0
  48. {stdpipe-0.2.5 → stdpipe-0.3.0}/tests/test_utils.py +0 -0
@@ -35,6 +35,7 @@ env/
35
35
  *~
36
36
  .dir-locals.el
37
37
  flycheck_*.py
38
+ *#
38
39
 
39
40
  # Testing
40
41
  .pytest_cache/
@@ -54,6 +55,7 @@ docs/_build/
54
55
  docs/_static/
55
56
  docs/_templates/
56
57
  doc/_build/
58
+ doc/api/
57
59
  .readthedocs.yaml.1
58
60
 
59
61
  # Jupyter
@@ -83,3 +85,4 @@ backup/
83
85
  *.orig
84
86
 
85
87
  test_data/
88
+ pyraf/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stdpipe
3
- Version: 0.2.5
3
+ Version: 0.3.0
4
4
  Summary: Simple Transient Detection Pipeline
5
5
  Author-email: Sergey Karpov <karpov.sv@gmail.com>
6
6
  Maintainer-email: Sergey Karpov <karpov.sv@gmail.com>
@@ -55,7 +55,8 @@ Requires-Dist: matplotlib
55
55
  Requires-Dist: astroquery>0.4.1
56
56
  Requires-Dist: sep
57
57
  Requires-Dist: astroscrappy
58
- Requires-Dist: photutils>1.9
58
+ Requires-Dist: photutils>=2.2
59
+ Requires-Dist: scikit-image
59
60
  Requires-Dist: statsmodels
60
61
  Requires-Dist: tqdm
61
62
  Requires-Dist: regions
@@ -79,8 +80,10 @@ Requires-Dist: numpydoc; extra == "docs"
79
80
  Requires-Dist: myst-parser; extra == "docs"
80
81
  Requires-Dist: sphinxcontrib-apidoc; extra == "docs"
81
82
  Requires-Dist: sphinx-prompt; extra == "docs"
83
+ Provides-Extra: adaptive
84
+ Requires-Dist: powerbin; extra == "adaptive"
82
85
  Provides-Extra: all
83
- Requires-Dist: stdpipe[dev,docs]; extra == "all"
86
+ Requires-Dist: stdpipe[adaptive,dev,docs]; extra == "all"
84
87
  Dynamic: license-file
85
88
 
86
89
  # STDPipe - Simple Transient Detection Pipeline
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "stdpipe"
7
- version = "0.2.5"
7
+ version = "0.3.0"
8
8
  description = "Simple Transient Detection Pipeline"
9
9
  readme = "README.md"
10
10
  license = {file = "LICENSE.md"}
@@ -49,7 +49,8 @@ dependencies = [
49
49
  "astroquery>0.4.1",
50
50
  "sep",
51
51
  "astroscrappy",
52
- "photutils>1.9",
52
+ "photutils>=2.2",
53
+ "scikit-image",
53
54
  "statsmodels",
54
55
  "tqdm",
55
56
  "regions",
@@ -83,9 +84,14 @@ docs = [
83
84
  "sphinx-prompt",
84
85
  ]
85
86
 
87
+ # Adaptive binning (Voronoi tessellation)
88
+ adaptive = [
89
+ "powerbin",
90
+ ]
91
+
86
92
  # All optional dependencies
87
93
  all = [
88
- "stdpipe[dev,docs]",
94
+ "stdpipe[dev,docs,adaptive]",
89
95
  ]
90
96
 
91
97
  [project.urls]
@@ -136,6 +142,7 @@ markers = [
136
142
  "requires_psfex: Tests requiring PSFEx to be installed",
137
143
  "requires_hotpants: Tests requiring HOTPANTS to be installed",
138
144
  "requires_astrometry_net: Tests requiring Astrometry.Net to be installed",
145
+ "requires_pyraf: Tests requiring PyRAF/IRAF to be installed",
139
146
  "requires_network: Tests that require network access",
140
147
  ]
141
148
  filterwarnings = [
@@ -6,4 +6,4 @@ detection related tasks, intended for quick and easy implementation of custom
6
6
  pipelines, as well as for interactive data analysis.
7
7
  """
8
8
 
9
- __version__ = "0.2.5"
9
+ __version__ = "0.3.0"
@@ -1,4 +1,3 @@
1
- from __future__ import absolute_import, division, print_function, unicode_literals
2
1
 
3
2
  import os, tempfile, shutil, shlex, re, warnings
4
3
  import numpy as np
@@ -2,7 +2,6 @@
2
2
  Module containing the routines for handling various online catalogues.
3
3
  """
4
4
 
5
- from __future__ import absolute_import, division, print_function, unicode_literals
6
5
 
7
6
  import os, posixpath, shutil, tempfile
8
7
  import numpy as np
@@ -11,7 +10,7 @@ from astropy.table import Table, MaskedColumn, vstack
11
10
  from astroquery.vizier import Vizier
12
11
  from astroquery.xmatch import XMatch
13
12
  from astroquery.imcce import Skybot
14
- from astroquery.ned import Ned
13
+ from astroquery.ipac.ned import Ned
15
14
  from astropy.coordinates import SkyCoord
16
15
  from astropy import units as u
17
16
  from astropy.time import Time
@@ -697,10 +696,10 @@ def xmatch_skybot(
697
696
  except (RuntimeError, KeyError, ConnectionError, OSError):
698
697
  # Nothing found in SkyBot
699
698
  return None
700
-
699
+
701
700
  if xcat is None or len(xcat) == 0:
702
701
  return None
703
-
702
+
704
703
  # Cross-match objects
705
704
  oidx, cidx, dist = astrometry.spherical_match(
706
705
  obj[col_ra], obj[col_dec], xcat['RA'], xcat['DEC'], 10 / 3600
@@ -2,7 +2,6 @@
2
2
  Module for cropping the images and creating image cutouts / postage stamps
3
3
  """
4
4
 
5
- from __future__ import absolute_import, division, print_function, unicode_literals
6
5
 
7
6
  import numpy as np
8
7
  import datetime
@@ -14,7 +13,7 @@ from astropy.time import Time
14
13
  from scipy.stats import chi2
15
14
 
16
15
  from scipy.optimize import minimize
17
- from scipy.ndimage.interpolation import shift
16
+ from scipy.ndimage import shift
18
17
 
19
18
  from . import utils
20
19
  from . import astrometry
@@ -1,4 +1,3 @@
1
- from __future__ import absolute_import, division, print_function, unicode_literals
2
1
 
3
2
  import psycopg2, psycopg2.extras
4
3
 
@@ -1,4 +1,3 @@
1
- from __future__ import absolute_import, division, print_function, unicode_literals
2
1
 
3
2
  import sys
4
3
  import numpy as np