plotastrodata 1.9.18__tar.gz → 1.9.19__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}/PKG-INFO +1 -1
  2. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata/__init__.py +1 -1
  3. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata/analysis_utils.py +4 -3
  4. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata/fits_utils.py +1 -1
  5. {plotastrodata-1.9.18 → plotastrodata-1.9.19/plotastrodata.egg-info}/PKG-INFO +1 -1
  6. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/LICENSE +0 -0
  7. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/MANIFEST.in +0 -0
  8. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/README.md +0 -0
  9. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata/const_utils.py +0 -0
  10. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata/coord_utils.py +0 -0
  11. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata/ext_utils.py +0 -0
  12. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata/fft_utils.py +0 -0
  13. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata/fitting_utils.py +0 -0
  14. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata/los_utils.py +0 -0
  15. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata/matrix_utils.py +0 -0
  16. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata/noise_utils.py +0 -0
  17. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata/other_utils.py +0 -0
  18. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata/plot_utils.py +0 -0
  19. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata.egg-info/SOURCES.txt +0 -0
  20. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata.egg-info/dependency_links.txt +0 -0
  21. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata.egg-info/not-zip-safe +0 -0
  22. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata.egg-info/requires.txt +0 -0
  23. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/plotastrodata.egg-info/top_level.txt +0 -0
  24. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/setup.cfg +0 -0
  25. {plotastrodata-1.9.18 → plotastrodata-1.9.19}/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
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
@@ -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'
@@ -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())
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
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
File without changes
File without changes
File without changes
File without changes