plotastrodata 1.9.18__tar.gz → 1.9.19.post1__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 (25) hide show
  1. {plotastrodata-1.9.18/plotastrodata.egg-info → plotastrodata-1.9.19.post1}/PKG-INFO +5 -6
  2. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/README.md +3 -3
  3. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata/__init__.py +1 -1
  4. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata/analysis_utils.py +4 -3
  5. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata/fits_utils.py +1 -1
  6. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1/plotastrodata.egg-info}/PKG-INFO +5 -6
  7. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata.egg-info/requires.txt +0 -1
  8. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/setup.cfg +1 -2
  9. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/LICENSE +0 -0
  10. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/MANIFEST.in +0 -0
  11. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata/const_utils.py +0 -0
  12. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata/coord_utils.py +0 -0
  13. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata/ext_utils.py +0 -0
  14. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata/fft_utils.py +0 -0
  15. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata/fitting_utils.py +0 -0
  16. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata/los_utils.py +0 -0
  17. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata/matrix_utils.py +0 -0
  18. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata/noise_utils.py +0 -0
  19. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata/other_utils.py +0 -0
  20. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata/plot_utils.py +0 -0
  21. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata.egg-info/SOURCES.txt +0 -0
  22. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata.egg-info/dependency_links.txt +0 -0
  23. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata.egg-info/not-zip-safe +0 -0
  24. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/plotastrodata.egg-info/top_level.txt +0 -0
  25. {plotastrodata-1.9.18 → plotastrodata-1.9.19.post1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plotastrodata
3
- Version: 1.9.18
3
+ Version: 1.9.19.post1
4
4
  Summary: plotastrodata is a tool for astronomers to create figures from FITS files and perform fundamental data analyses with ease.
5
5
  Home-page: https://github.com/yusukeaso-astron/plotastrodata
6
6
  Download-URL: https://github.com/yusukeaso-astron/plotastrodata
@@ -8,7 +8,7 @@ Author: yusukeaso-astron
8
8
  License: GNU General Public License Version 3
9
9
  Keywords: astronomy,FITS,plot
10
10
  Classifier: Programming Language :: Python :: 3
11
- Requires-Python: >=3.12
11
+ Requires-Python: >=3.11
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
14
  Requires-Dist: astropy>=7.2
@@ -16,7 +16,6 @@ Requires-Dist: corner
16
16
  Requires-Dist: dynesty
17
17
  Requires-Dist: emcee
18
18
  Requires-Dist: matplotlib
19
- Requires-Dist: multiprocess
20
19
  Requires-Dist: numpy>=2.0
21
20
  Requires-Dist: pillow
22
21
  Requires-Dist: plotly
@@ -81,14 +80,14 @@ plotastrodata can do the following things.
81
80
 
82
81
  ## Requirement
83
82
 
84
- * astropy
83
+ * Python >= 3.11
84
+ * astropy >= 7.2
85
85
  * corner (only for fitting)
86
86
  * dynesty (only for fitting)
87
87
  * emcee (only for fitting)
88
88
  * ffmpeg (only for movie)
89
89
  * matplotlib
90
- * multiprocess (only for fitting)
91
- * numpy
90
+ * numpy >= 2.0
92
91
  * pillow (only for RGB figures)
93
92
  * plotly (only for html cube)
94
93
  * ptemcee (only for fitting)
@@ -52,14 +52,14 @@ plotastrodata can do the following things.
52
52
 
53
53
  ## Requirement
54
54
 
55
- * astropy
55
+ * Python >= 3.11
56
+ * astropy >= 7.2
56
57
  * corner (only for fitting)
57
58
  * dynesty (only for fitting)
58
59
  * emcee (only for fitting)
59
60
  * ffmpeg (only for movie)
60
61
  * matplotlib
61
- * multiprocess (only for fitting)
62
- * numpy
62
+ * numpy >= 2.0
63
63
  * pillow (only for RGB figures)
64
64
  * plotly (only for html cube)
65
65
  * ptemcee (only for fitting)
@@ -1,4 +1,4 @@
1
1
  import warnings
2
2
 
3
3
  warnings.simplefilter('ignore', FutureWarning)
4
- __version__ = '1.9.18'
4
+ __version__ = '1.9.19-1'
@@ -817,11 +817,11 @@ class AstroFrame():
817
817
  beam_incut = 1 / np.hypot(np.cos(angle) / bmaj, np.sin(angle) / bmin)
818
818
  d.beam[i] = np.array([np.abs(d.dv), beam_incut, 0])
819
819
 
820
- def _read_one(self, d: AstroData, i: int) -> None:
820
+ def _read_one(self, d: AstroData, i: int, grid: list) -> None:
821
821
  if d.center[i] == 'common':
822
822
  d.center[i] = self.center
823
823
  d.sigma_org[i] = d.sigma[i]
824
- grid = self._read_fitsimage(d, i, grid=[d.x, d.y, d.v])
824
+ grid = self._read_fitsimage(d, i, grid=grid)
825
825
  if d.data[i] is not None:
826
826
  d.sigma[i] = estimate_rms(d.data[i], d.sigma[i])
827
827
  grid = self._shift_center(d, i, grid)
@@ -854,7 +854,8 @@ class AstroFrame():
854
854
  for name in ASTRODATA_ARGS:
855
855
  setattr(d, name, _as_list(getattr(d, name), d.n))
856
856
  d.beam = _as_list(d.beam, d.n, isbeam=True)
857
+ grid = [d.x, d.y, d.v]
857
858
  for i in range(d.n):
858
- self._read_one(d, i)
859
+ self._read_one(d, i, grid.copy()) # .copy() not to updated d.x again ang again.
859
860
  for name in ASTRODATA_ARGS + ['beam']:
860
861
  setattr(d, name, _scalar_if_single(getattr(d, name), d.n))
@@ -300,7 +300,7 @@ class FitsData:
300
300
  case _:
301
301
  print(f'Unknown CUNIT3 {cunitv} found.'
302
302
  + ' v is read as is.')
303
- dv = None if len(v) == 0 else v[1] - v[0]
303
+ dv = None if len(v) <= 1 else v[1] - v[0]
304
304
  self.v, self.dv = v, dv
305
305
 
306
306
  return gen_v
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plotastrodata
3
- Version: 1.9.18
3
+ Version: 1.9.19.post1
4
4
  Summary: plotastrodata is a tool for astronomers to create figures from FITS files and perform fundamental data analyses with ease.
5
5
  Home-page: https://github.com/yusukeaso-astron/plotastrodata
6
6
  Download-URL: https://github.com/yusukeaso-astron/plotastrodata
@@ -8,7 +8,7 @@ Author: yusukeaso-astron
8
8
  License: GNU General Public License Version 3
9
9
  Keywords: astronomy,FITS,plot
10
10
  Classifier: Programming Language :: Python :: 3
11
- Requires-Python: >=3.12
11
+ Requires-Python: >=3.11
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
14
  Requires-Dist: astropy>=7.2
@@ -16,7 +16,6 @@ Requires-Dist: corner
16
16
  Requires-Dist: dynesty
17
17
  Requires-Dist: emcee
18
18
  Requires-Dist: matplotlib
19
- Requires-Dist: multiprocess
20
19
  Requires-Dist: numpy>=2.0
21
20
  Requires-Dist: pillow
22
21
  Requires-Dist: plotly
@@ -81,14 +80,14 @@ plotastrodata can do the following things.
81
80
 
82
81
  ## Requirement
83
82
 
84
- * astropy
83
+ * Python >= 3.11
84
+ * astropy >= 7.2
85
85
  * corner (only for fitting)
86
86
  * dynesty (only for fitting)
87
87
  * emcee (only for fitting)
88
88
  * ffmpeg (only for movie)
89
89
  * matplotlib
90
- * multiprocess (only for fitting)
91
- * numpy
90
+ * numpy >= 2.0
92
91
  * pillow (only for RGB figures)
93
92
  * plotly (only for html cube)
94
93
  * ptemcee (only for fitting)
@@ -3,7 +3,6 @@ corner
3
3
  dynesty
4
4
  emcee
5
5
  matplotlib
6
- multiprocess
7
6
  numpy>=2.0
8
7
  pillow
9
8
  plotly
@@ -14,14 +14,13 @@ classifiers = Programming Language :: Python :: 3
14
14
  [options]
15
15
  packages = find:
16
16
  zip_safe = False
17
- python_requires = >=3.12
17
+ python_requires = >=3.11
18
18
  install_requires =
19
19
  astropy >= 7.2
20
20
  corner
21
21
  dynesty
22
22
  emcee
23
23
  matplotlib
24
- multiprocess
25
24
  numpy >= 2.0
26
25
  pillow
27
26
  plotly