plotastrodata 1.9.3__tar.gz → 1.9.4__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.3/plotastrodata.egg-info → plotastrodata-1.9.4}/PKG-INFO +1 -1
  2. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata/__init__.py +1 -1
  3. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata/analysis_utils.py +11 -4
  4. {plotastrodata-1.9.3 → plotastrodata-1.9.4/plotastrodata.egg-info}/PKG-INFO +1 -1
  5. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/LICENSE +0 -0
  6. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/MANIFEST.in +0 -0
  7. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/README.md +0 -0
  8. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata/const_utils.py +0 -0
  9. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata/coord_utils.py +0 -0
  10. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata/ext_utils.py +0 -0
  11. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata/fft_utils.py +0 -0
  12. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata/fits_utils.py +0 -0
  13. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata/fitting_utils.py +0 -0
  14. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata/los_utils.py +0 -0
  15. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata/matrix_utils.py +0 -0
  16. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata/noise_utils.py +0 -0
  17. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata/other_utils.py +0 -0
  18. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata/plot_utils.py +0 -0
  19. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata.egg-info/SOURCES.txt +0 -0
  20. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata.egg-info/dependency_links.txt +0 -0
  21. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata.egg-info/not-zip-safe +0 -0
  22. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata.egg-info/requires.txt +0 -0
  23. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/plotastrodata.egg-info/top_level.txt +0 -0
  24. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/setup.cfg +0 -0
  25. {plotastrodata-1.9.3 → plotastrodata-1.9.4}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plotastrodata
3
- Version: 1.9.3
3
+ Version: 1.9.4
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.3'
4
+ __version__ = '1.9.4'
@@ -147,6 +147,9 @@ class AstroData():
147
147
  width (list, optional): Number of channels, y-pixels, and x-pixels for binning. Defaults to [1, 1, 1].
148
148
  """
149
149
  w = [1] * (4 - len(width)) + list(width)
150
+ if self.pv:
151
+ w[2] = max(w[1], w[2])
152
+ w[1] = 1
150
153
  d = to4dim(self.data)
151
154
  size = np.array(np.shape(d))
152
155
  w = np.array(w, dtype=int)
@@ -155,11 +158,12 @@ class AstroData():
155
158
  ws = ', '.join([f'{s:d}' for s in w[1:]])
156
159
  print(f'width was changed to [{ws}].')
157
160
  newsize = size // w
158
- if w[1] > 1:
159
- print(f'sigma has been divided by sqrt({w[1]:d})'
161
+ if (not self.pv and w[1] > 1) or (self.pv and w[2] > 1):
162
+ width_v = w[2] if self.pv else w[1]
163
+ print(f'sigma has been divided by sqrt({width_v:d})'
160
164
  + ' because of binning in the v-axis.')
161
- self.sigma = self.sigma / np.sqrt(w[1])
162
- if w[2] > 1 or w[3] > 1:
165
+ self.sigma = self.sigma / np.sqrt(width_v)
166
+ if (not self.pv and w[2] > 1) or w[3] > 1:
163
167
  print('Binning in the x- or y-axis does not update sigma.')
164
168
  grid = [None, self.v, self.y, self.x]
165
169
  dgrid = [None, self.dv, self.dy, self.dx]
@@ -187,6 +191,9 @@ class AstroData():
187
191
  self.data = np.squeeze(d)
188
192
  _, self.v, self.y, self.x = grid
189
193
  _, self.dv, self.dy, self.dx = dgrid
194
+ if self.pv:
195
+ self.v = self.y
196
+ self.dv = self.dy
190
197
 
191
198
  def centering(self, includexy: bool = True,
192
199
  includev: bool = False,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plotastrodata
3
- Version: 1.9.3
3
+ Version: 1.9.4
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
File without changes