acstools 3.7.1__tar.gz → 3.7.2__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 (94) hide show
  1. {acstools-3.7.1 → acstools-3.7.2}/CITATION.md +3 -1
  2. {acstools-3.7.1 → acstools-3.7.2}/PKG-INFO +1 -1
  3. {acstools-3.7.1 → acstools-3.7.2}/acstools/utils_findsat_mrt.py +13 -5
  4. {acstools-3.7.1 → acstools-3.7.2}/acstools/version.py +2 -2
  5. {acstools-3.7.1 → acstools-3.7.2}/acstools.egg-info/PKG-INFO +1 -1
  6. {acstools-3.7.1 → acstools-3.7.2}/doc/source/index.rst +7 -0
  7. {acstools-3.7.1 → acstools-3.7.2}/tox.ini +1 -4
  8. {acstools-3.7.1 → acstools-3.7.2}/.bandit.yaml +0 -0
  9. {acstools-3.7.1 → acstools-3.7.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  10. {acstools-3.7.1 → acstools-3.7.2}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  11. {acstools-3.7.1 → acstools-3.7.2}/.github/ISSUE_TEMPLATE/question.md +0 -0
  12. {acstools-3.7.1 → acstools-3.7.2}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  13. {acstools-3.7.1 → acstools-3.7.2}/.github/dependabot.yml +0 -0
  14. {acstools-3.7.1 → acstools-3.7.2}/.github/labeler.yml +0 -0
  15. {acstools-3.7.1 → acstools-3.7.2}/.github/workflows/ci_workflows.yml +0 -0
  16. {acstools-3.7.1 → acstools-3.7.2}/.github/workflows/codeql-analysis.yml +0 -0
  17. {acstools-3.7.1 → acstools-3.7.2}/.github/workflows/open_actions.yml +0 -0
  18. {acstools-3.7.1 → acstools-3.7.2}/.github/workflows/predeps_workflows.yml +0 -0
  19. {acstools-3.7.1 → acstools-3.7.2}/.github/workflows/publish-to-pypi.yml +0 -0
  20. {acstools-3.7.1 → acstools-3.7.2}/.gitignore +0 -0
  21. {acstools-3.7.1 → acstools-3.7.2}/.readthedocs.yaml +0 -0
  22. {acstools-3.7.1 → acstools-3.7.2}/CHANGES.rst +0 -0
  23. {acstools-3.7.1 → acstools-3.7.2}/CODE_OF_CONDUCT.md +0 -0
  24. {acstools-3.7.1 → acstools-3.7.2}/LICENSE.md +0 -0
  25. {acstools-3.7.1 → acstools-3.7.2}/MANIFEST.in +0 -0
  26. {acstools-3.7.1 → acstools-3.7.2}/README.rst +0 -0
  27. {acstools-3.7.1 → acstools-3.7.2}/acstools/__init__.py +0 -0
  28. {acstools-3.7.1 → acstools-3.7.2}/acstools/acs2d.py +0 -0
  29. {acstools-3.7.1 → acstools-3.7.2}/acstools/acs_destripe.py +0 -0
  30. {acstools-3.7.1 → acstools-3.7.2}/acstools/acs_destripe_plus.py +0 -0
  31. {acstools-3.7.1 → acstools-3.7.2}/acstools/acsccd.py +0 -0
  32. {acstools-3.7.1 → acstools-3.7.2}/acstools/acscte.py +0 -0
  33. {acstools-3.7.1 → acstools-3.7.2}/acstools/acscteforwardmodel.py +0 -0
  34. {acstools-3.7.1 → acstools-3.7.2}/acstools/acsphotcte.py +0 -0
  35. {acstools-3.7.1 → acstools-3.7.2}/acstools/acsrej.py +0 -0
  36. {acstools-3.7.1 → acstools-3.7.2}/acstools/acssum.py +0 -0
  37. {acstools-3.7.1 → acstools-3.7.2}/acstools/acszpt.py +0 -0
  38. {acstools-3.7.1 → acstools-3.7.2}/acstools/calacs.py +0 -0
  39. {acstools-3.7.1 → acstools-3.7.2}/acstools/data/polarizer_tables.yaml +0 -0
  40. {acstools-3.7.1 → acstools-3.7.2}/acstools/data/rt_line_kernel_width15.fits +0 -0
  41. {acstools-3.7.1 → acstools-3.7.2}/acstools/data/rt_line_kernel_width3.fits +0 -0
  42. {acstools-3.7.1 → acstools-3.7.2}/acstools/data/rt_line_kernel_width7.fits +0 -0
  43. {acstools-3.7.1 → acstools-3.7.2}/acstools/findsat_mrt.py +0 -0
  44. {acstools-3.7.1 → acstools-3.7.2}/acstools/focus_diverse_epsfs.py +0 -0
  45. {acstools-3.7.1 → acstools-3.7.2}/acstools/polarization_tools.py +0 -0
  46. {acstools-3.7.1 → acstools-3.7.2}/acstools/satdet.py +0 -0
  47. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/.gitattributes +0 -0
  48. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/__init__.py +0 -0
  49. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/data/input/ja0x03ojq_flt.fits +0 -0
  50. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/data/input/jb5g05ubq_flt.fits +0 -0
  51. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/data/input/jc2z03cvq_blv_tmp.fits +0 -0
  52. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/data/input/jc5001soq_flt.fits +0 -0
  53. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/data/input/jc8m10syq_flc.fits +0 -0
  54. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/data/input/jc8m32j5q_flc.fits +0 -0
  55. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/data/input/jc8o04ghq_flt.fits +0 -0
  56. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/data/input/jc8o04ghq_mask1.fits +0 -0
  57. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/data/input/jc8o04ghq_mask2.fits +0 -0
  58. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/data/truth/ja0x03ojq_flt_ref.fits +0 -0
  59. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/data/truth/jb5g05ubq_flt_ref.fits +0 -0
  60. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/data/truth/jc2z03cvq_blv_tmp_ref.fits +0 -0
  61. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/data/truth/jc5001soq_flt_ref.fits +0 -0
  62. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/data/truth/jc8m10syq_flc_ref.fits +0 -0
  63. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/data/truth/jc8m32j5q_flc_mask_ref.fits +0 -0
  64. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/data/truth/jc8o04ghq_flt_ref.fits +0 -0
  65. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/helpers.py +0 -0
  66. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/test_polarization.py +0 -0
  67. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/test_wfc_destripe.py +0 -0
  68. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/test_wfc_findsat_mrt.py +0 -0
  69. {acstools-3.7.1 → acstools-3.7.2}/acstools/tests/test_wfc_satdet.py +0 -0
  70. {acstools-3.7.1 → acstools-3.7.2}/acstools/utils_calib.py +0 -0
  71. {acstools-3.7.1 → acstools-3.7.2}/acstools.egg-info/SOURCES.txt +0 -0
  72. {acstools-3.7.1 → acstools-3.7.2}/acstools.egg-info/dependency_links.txt +0 -0
  73. {acstools-3.7.1 → acstools-3.7.2}/acstools.egg-info/entry_points.txt +0 -0
  74. {acstools-3.7.1 → acstools-3.7.2}/acstools.egg-info/not-zip-safe +0 -0
  75. {acstools-3.7.1 → acstools-3.7.2}/acstools.egg-info/requires.txt +0 -0
  76. {acstools-3.7.1 → acstools-3.7.2}/acstools.egg-info/top_level.txt +0 -0
  77. {acstools-3.7.1 → acstools-3.7.2}/conftest.py +0 -0
  78. {acstools-3.7.1 → acstools-3.7.2}/doc/Makefile +0 -0
  79. {acstools-3.7.1 → acstools-3.7.2}/doc/make.bat +0 -0
  80. {acstools-3.7.1 → acstools-3.7.2}/doc/source/_static/stsci_pri_combo_mark_white.png +0 -0
  81. {acstools-3.7.1 → acstools-3.7.2}/doc/source/_templates/.gitignore +0 -0
  82. {acstools-3.7.1 → acstools-3.7.2}/doc/source/acs_destripe.rst +0 -0
  83. {acstools-3.7.1 → acstools-3.7.2}/doc/source/acsphotcte.rst +0 -0
  84. {acstools-3.7.1 → acstools-3.7.2}/doc/source/acszpt.rst +0 -0
  85. {acstools-3.7.1 → acstools-3.7.2}/doc/source/calacs.rst +0 -0
  86. {acstools-3.7.1 → acstools-3.7.2}/doc/source/conf.py +0 -0
  87. {acstools-3.7.1 → acstools-3.7.2}/doc/source/findsat_mrt.rst +0 -0
  88. {acstools-3.7.1 → acstools-3.7.2}/doc/source/focus_diverse_epsfs.rst +0 -0
  89. {acstools-3.7.1 → acstools-3.7.2}/doc/source/polarization_tools.rst +0 -0
  90. {acstools-3.7.1 → acstools-3.7.2}/doc/source/satdet.rst +0 -0
  91. {acstools-3.7.1 → acstools-3.7.2}/doc/source/utils_calib.rst +0 -0
  92. {acstools-3.7.1 → acstools-3.7.2}/pyproject.toml +0 -0
  93. {acstools-3.7.1 → acstools-3.7.2}/setup.cfg +0 -0
  94. {acstools-3.7.1 → acstools-3.7.2}/setup.py +0 -0
@@ -1,7 +1,9 @@
1
1
  If you use acstools, please cite as:
2
2
 
3
- [![ascl:2011.024](https://img.shields.io/badge/ascl-2011.024-blue.svg?colorB=262255)](https://ascl.net/2011.024)
3
+ [![NASA/ADS-ACStools](https://img.shields.io/badge/NASA%2FADS-ACStools-blue)](https://ui.adsabs.harvard.edu/abs/2020ascl.soft11024L/abstract)
4
4
 
5
5
  #### Other forms of citation
6
6
 
7
+ [![ascl:2011.024](https://img.shields.io/badge/ascl-2011.024-blue.svg?colorB=262255)](https://ascl.net/2011.024)
8
+
7
9
  [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.7406933.svg)](https://doi.org/10.5281/zenodo.7406933)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: acstools
3
- Version: 3.7.1
3
+ Version: 3.7.2
4
4
  Summary: Python Tools for HST ACS
5
5
  Home-page: https://github.com/spacetelescope/acstools
6
6
  Author: Matt Davis, Warren Hack, Norman Grogin, Pey Lian Lim, Sara Ogaz, Leonardo Ubeda, Mihai Cara, David Borncamp, Nathan Miles, Tyler Desjardins, Jenna Ryon, David Stark, Gagandeep Anand, Yotam Cohen
@@ -1432,16 +1432,24 @@ def create_mrt_line_kernel(width, sigma, outfile=None, shape=(1024, 2048),
1432
1432
  LOG.info('Inteprolating onto new grid to center kernel')
1433
1433
  theta_arr = np.arange(cutout.shape[1])
1434
1434
  rho_arr = np.arange(cutout.shape[0])
1435
- theta_grid, rho_grid = np.meshgrid(theta_arr, rho_arr)
1436
1435
 
1437
1436
  new_theta_arr = theta_arr + theta_shift
1438
1437
  new_rho_arr = rho_arr + rho_shift
1439
1438
  new_theta_grid, new_rho_grid = np.meshgrid(new_theta_arr, new_rho_arr)
1440
1439
 
1441
- # inteprolate onto new grid
1442
- f = interpolate.interp2d(theta_grid, rho_grid, cutout.data,
1443
- kind='cubic')
1444
- cutout = f(new_theta_arr, new_rho_arr) # overwrite old cutout
1440
+ f = interpolate.RegularGridInterpolator((rho_arr, theta_arr),
1441
+ cutout.data,
1442
+ bounds_error=False,
1443
+ fill_value=0,
1444
+ method='cubic')
1445
+
1446
+ # unable to provide 2D grid of points for interpolation. Switching to
1447
+ # 1D, and then will switch back
1448
+ points = [[r, t] for r, t in zip(np.ravel(new_rho_grid),
1449
+ np.ravel(new_theta_grid))]
1450
+
1451
+ # return to original shape and replace the old cutout
1452
+ cutout = np.reshape(f(points), cutout.data.shape)
1445
1453
 
1446
1454
  if ax:
1447
1455
  fig4, ax4 = plt.subplots()
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '3.7.1'
16
- __version_tuple__ = version_tuple = (3, 7, 1)
15
+ __version__ = version = '3.7.2'
16
+ __version_tuple__ = version_tuple = (3, 7, 2)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: acstools
3
- Version: 3.7.1
3
+ Version: 3.7.2
4
4
  Summary: Python Tools for HST ACS
5
5
  Home-page: https://github.com/spacetelescope/acstools
6
6
  Author: Matt Davis, Warren Hack, Norman Grogin, Pey Lian Lim, Sara Ogaz, Leonardo Ubeda, Mihai Cara, David Borncamp, Nathan Miles, Tyler Desjardins, Jenna Ryon, David Stark, Gagandeep Anand, Yotam Cohen
@@ -52,3 +52,10 @@ Indices and tables
52
52
  * :ref:`genindex`
53
53
  * :ref:`modindex`
54
54
  * :ref:`search`
55
+
56
+ ******************
57
+ Citation
58
+ ******************
59
+
60
+ * Please cite `acstools <https://ui.adsabs.harvard.edu/abs/2020ascl.soft11024L/abstract>`_ if you have used it in your work.
61
+
@@ -40,6 +40,7 @@ deps =
40
40
  devdeps: scikit-image>=0.0.dev0
41
41
  devdeps: pyerfa>=0.0.dev0
42
42
  devdeps: astropy>=0.0.dev0
43
+ devdeps: photutils>=0.0.dev0
43
44
  devdeps: git+https://github.com/spacetelescope/ci_watson.git
44
45
  devdeps: stsci.tools
45
46
 
@@ -49,10 +50,6 @@ extras =
49
50
  predeps: all
50
51
 
51
52
  commands =
52
- # Force numpy-dev after matplotlib downgrades it (https://github.com/matplotlib/matplotlib/issues/26847)
53
- devdeps: python -m pip install --pre --upgrade --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy
54
- # photutils has C-extension and must be built with numpy-dev in devdeps
55
- devdeps: python -m pip install --pre --upgrade git+https://github.com/astropy/photutils.git
56
53
  pip freeze
57
54
  pytest --pyargs acstools {toxinidir}/doc {posargs}
58
55
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes