plotastrodata 1.3.0__tar.gz → 1.3.1__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 (20) hide show
  1. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/PKG-INFO +1 -1
  2. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/plotastrodata/__init__.py +1 -1
  3. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/plotastrodata/analysis_utils.py +2 -5
  4. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/plotastrodata/plot_utils.py +3 -1
  5. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/plotastrodata.egg-info/PKG-INFO +1 -1
  6. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/LICENSE +0 -0
  7. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/README.md +0 -0
  8. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/plotastrodata/const_utils.py +0 -0
  9. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/plotastrodata/fft_utils.py +0 -0
  10. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/plotastrodata/fits_utils.py +0 -0
  11. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/plotastrodata/fitting_utils.py +0 -0
  12. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/plotastrodata/los_utils.py +0 -0
  13. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/plotastrodata/other_utils.py +0 -0
  14. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/plotastrodata.egg-info/SOURCES.txt +0 -0
  15. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/plotastrodata.egg-info/dependency_links.txt +0 -0
  16. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/plotastrodata.egg-info/not-zip-safe +0 -0
  17. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/plotastrodata.egg-info/requires.txt +0 -0
  18. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/plotastrodata.egg-info/top_level.txt +0 -0
  19. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/setup.cfg +0 -0
  20. {plotastrodata-1.3.0 → plotastrodata-1.3.1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plotastrodata
3
- Version: 1.3.0
3
+ Version: 1.3.1
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', UserWarning)
4
- __version__ = '1.3.0'
4
+ __version__ = '1.3.1'
@@ -583,11 +583,8 @@ class AstroData():
583
583
  h['BMAJ'] = self.beam[0] / 3600
584
584
  h['BMIN'] = self.beam[1] / 3600
585
585
  h['BPA'] = self.beam[2]
586
- h0 = header
587
- for k in h:
588
- if k not in h0:
589
- h0[k] = h[k]
590
- data2fits(d=self.data, h=h0, templatefits=self.fitsimage_org,
586
+ h.update(header)
587
+ data2fits(d=self.data, h=h, templatefits=self.fitsimage_org,
591
588
  fitsimage=fitsimage)
592
589
 
593
590
 
@@ -1052,7 +1052,9 @@ class PlotAstroData(AstroFrame):
1052
1052
  if len(self.ax) > 1:
1053
1053
  print('get_figax is not supported with channel maps')
1054
1054
  return
1055
- return self.fig, self.ax[0]
1055
+
1056
+ fig = plt.figure(0) if self.fig is None else self.fig
1057
+ return fig, self.ax[0]
1056
1058
 
1057
1059
 
1058
1060
  def plotprofile(coords: list[str] | str = [],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plotastrodata
3
- Version: 1.3.0
3
+ Version: 1.3.1
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