chanter 0.0.1__py3-none-any.whl → 0.0.2__py3-none-any.whl
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.
chanter/model_galaxy.py
CHANGED
|
@@ -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('
|
|
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('
|
|
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.
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
chanter/__init__.py,sha256=BDOShvS6R5VpS_iI7FErrUklA9lD34k5ZoEtacycoIg,98
|
|
2
2
|
chanter/galaxy_fitter.py,sha256=JYDRc-iW5ZgDHprw4FCshrsBnG8ENvs3MEDNUtlFYxQ,3683
|
|
3
|
-
chanter/model_galaxy.py,sha256=
|
|
3
|
+
chanter/model_galaxy.py,sha256=IgW93DlW0H9KLBNgh6SeyNSIqgHSwctsCUk4G5oHAc8,7830
|
|
4
4
|
chanter/utils/__init__.py,sha256=hn-ho-lJeT0evKXL1tV5jX0cR4meSlJmPcdxC49cLok,34
|
|
5
5
|
chanter/utils/filter_set.py,sha256=EITLa2c3FG3n1-v7KatKRwHCRyfZ4TTjsi_WM7Bz64k,6819
|
|
6
6
|
chanter/utils/make_igm_grid.py,sha256=s9NeRmgOsj_OxvxXixIdPSSQZPlsLcPedIRr4soZUcU,10304
|
|
@@ -10,7 +10,7 @@ chanter/utils/make_ssp_grid/load_fits_test.py,sha256=rX5IN6hV_yN2dlNEdy5JsMnpxA1
|
|
|
10
10
|
chanter/utils/make_ssp_grid/ascii_files/bintoascii.py,sha256=y-AhZB_hi7K9aXbSMvojLEZDH61cE3itOKAJxl74sQ8,189
|
|
11
11
|
chanter/utils/make_ssp_grid/raw_files/bc03/src/rebuildfitsheader.py,sha256=aIWLJPcZIb0gBMd4vcruEATIc2s4bDojybu_dI2noYg,39734
|
|
12
12
|
chanter/utils/make_ssp_grid/raw_files/bc03/src/rebuildtimeheader.py,sha256=CBJR7Y-yieZUjMM4dXfBweYRGo7jyMZWKRPFJoUWlSs,1732
|
|
13
|
-
chanter-0.0.
|
|
14
|
-
chanter-0.0.
|
|
15
|
-
chanter-0.0.
|
|
16
|
-
chanter-0.0.
|
|
13
|
+
chanter-0.0.2.dist-info/METADATA,sha256=eavNNNJ_WjbwG2hqnsEpUjCICkla3j20F9iAKZA0apM,377
|
|
14
|
+
chanter-0.0.2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
15
|
+
chanter-0.0.2.dist-info/top_level.txt,sha256=Q23dLK1syz0D-XIZ6zeY6TOZ7BQsC-BLqRiVQE7_udk,8
|
|
16
|
+
chanter-0.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|