chanter 0.0.1__tar.gz → 0.0.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 (22) hide show
  1. {chanter-0.0.1 → chanter-0.0.2}/PKG-INFO +2 -1
  2. {chanter-0.0.1 → chanter-0.0.2}/chanter/model_galaxy.py +3 -2
  3. {chanter-0.0.1 → chanter-0.0.2}/chanter.egg-info/PKG-INFO +2 -1
  4. chanter-0.0.1/requirements.txt → chanter-0.0.2/chanter.egg-info/requires.txt +2 -1
  5. {chanter-0.0.1 → chanter-0.0.2}/pyproject.toml +1 -1
  6. chanter-0.0.1/chanter.egg-info/requires.txt → chanter-0.0.2/requirements.txt +1 -0
  7. {chanter-0.0.1 → chanter-0.0.2}/README.md +0 -0
  8. {chanter-0.0.1 → chanter-0.0.2}/chanter/__init__.py +0 -0
  9. {chanter-0.0.1 → chanter-0.0.2}/chanter/galaxy_fitter.py +0 -0
  10. {chanter-0.0.1 → chanter-0.0.2}/chanter/utils/__init__.py +0 -0
  11. {chanter-0.0.1 → chanter-0.0.2}/chanter/utils/filter_set.py +0 -0
  12. {chanter-0.0.1 → chanter-0.0.2}/chanter/utils/make_igm_grid.py +0 -0
  13. {chanter-0.0.1 → chanter-0.0.2}/chanter/utils/make_ssp_grid/ascii_files/bintoascii.py +0 -0
  14. {chanter-0.0.1 → chanter-0.0.2}/chanter/utils/make_ssp_grid/csv_to_fits.py +0 -0
  15. {chanter-0.0.1 → chanter-0.0.2}/chanter/utils/make_ssp_grid/get_ssp.py +0 -0
  16. {chanter-0.0.1 → chanter-0.0.2}/chanter/utils/make_ssp_grid/load_fits_test.py +0 -0
  17. {chanter-0.0.1 → chanter-0.0.2}/chanter/utils/make_ssp_grid/raw_files/bc03/src/rebuildfitsheader.py +0 -0
  18. {chanter-0.0.1 → chanter-0.0.2}/chanter/utils/make_ssp_grid/raw_files/bc03/src/rebuildtimeheader.py +0 -0
  19. {chanter-0.0.1 → chanter-0.0.2}/chanter.egg-info/SOURCES.txt +0 -0
  20. {chanter-0.0.1 → chanter-0.0.2}/chanter.egg-info/dependency_links.txt +0 -0
  21. {chanter-0.0.1 → chanter-0.0.2}/chanter.egg-info/top_level.txt +0 -0
  22. {chanter-0.0.1 → chanter-0.0.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: chanter
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: A very simple galaxy spectrum modeller
5
5
  Author-email: Struan Stevenson <struan.stevenson@ed.ac.uk>
6
6
  Requires-Python: >=3.12
@@ -10,5 +10,6 @@ Requires-Dist: astropy
10
10
  Requires-Dist: nautilus-sampler
11
11
  Requires-Dist: spectres
12
12
  Requires-Dist: matplotlib
13
+ Requires-Dist: os
13
14
 
14
15
  # Chanter
@@ -4,6 +4,7 @@ from astropy.cosmology import Planck13 # Planck 2013
4
4
  from astropy.io import fits
5
5
  from spectres import spectres
6
6
  from .utils import filter_set
7
+ import os
7
8
 
8
9
 
9
10
  # Load SSPs and resample
@@ -29,7 +30,7 @@ def resample_ssp_wavs(target_wavs):
29
30
 
30
31
  def resample_igm_grid(wavs):
31
32
  # Import IGM grid
32
- raw_igm_grid = fits.open('chanter/chanter/grids/d_igm_grid_inoue14.fits')[1].data
33
+ raw_igm_grid = fits.open(os.path.dirname(os.path.realpath(__file__)) + 'grids/d_igm_grid_inoue14.fits')[1].data
33
34
  igm_wavelengths = np.arange(1.0, 1225.01, 1.0)
34
35
 
35
36
  # Resample in wavelength
@@ -46,7 +47,7 @@ def resample_igm_grid(wavs):
46
47
  return grid
47
48
 
48
49
 
49
- hdul = fits.open('chanter/chanter/grids/ssps.fits')
50
+ hdul = fits.open(os.path.dirname(os.path.realpath(__file__)) + 'grids/ssps.fits')
50
51
  master_base = np.array((hdul[1].data, hdul[2].data, hdul[3].data, hdul[4].data, hdul[5].data, hdul[6].data, hdul[7].data))
51
52
 
52
53
  rest_target_wavs = np.arange(100., 50000., 10.)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: chanter
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: A very simple galaxy spectrum modeller
5
5
  Author-email: Struan Stevenson <struan.stevenson@ed.ac.uk>
6
6
  Requires-Python: >=3.12
@@ -10,5 +10,6 @@ Requires-Dist: astropy
10
10
  Requires-Dist: nautilus-sampler
11
11
  Requires-Dist: spectres
12
12
  Requires-Dist: matplotlib
13
+ Requires-Dist: os
13
14
 
14
15
  # Chanter
@@ -2,4 +2,5 @@ numpy
2
2
  astropy
3
3
  nautilus-sampler
4
4
  spectres
5
- matplotlib
5
+ matplotlib
6
+ os
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "chanter"
3
- version = "0.0.1"
3
+ version = "0.0.2"
4
4
  authors = [
5
5
  { name="Struan Stevenson", email="struan.stevenson@ed.ac.uk" },
6
6
  ]
@@ -3,3 +3,4 @@ astropy
3
3
  nautilus-sampler
4
4
  spectres
5
5
  matplotlib
6
+ os
File without changes
File without changes
File without changes