chanter 0.0.5__py3-none-any.whl → 0.0.7__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/galaxy_fitter.py +1 -1
- chanter/utils/make_igm_grid.py +4 -4
- {chanter-0.0.5.dist-info → chanter-0.0.7.dist-info}/METADATA +2 -1
- {chanter-0.0.5.dist-info → chanter-0.0.7.dist-info}/RECORD +6 -6
- {chanter-0.0.5.dist-info → chanter-0.0.7.dist-info}/WHEEL +0 -0
- {chanter-0.0.5.dist-info → chanter-0.0.7.dist-info}/top_level.txt +0 -0
chanter/galaxy_fitter.py
CHANGED
|
@@ -80,7 +80,7 @@ class galaxyfitter(object):
|
|
|
80
80
|
dat[1] = 2.99792458E-05 * ((1e-6 * dat[1]) / ((effwavs)**2))
|
|
81
81
|
|
|
82
82
|
# Run the nested sampler over the likelihood function
|
|
83
|
-
sampler = Sampler(prior, lambda param_dict: self.log_likelihood(dat, self.gen_phot, filt_files, param_dict), n_live=
|
|
83
|
+
sampler = Sampler(prior, lambda param_dict: self.log_likelihood(dat, self.gen_phot, filt_files, param_dict), n_live=500)
|
|
84
84
|
success = sampler.run(verbose=True, discard_exploration=True, timeout=1800)
|
|
85
85
|
|
|
86
86
|
# Plot results
|
chanter/utils/make_igm_grid.py
CHANGED
|
@@ -7,7 +7,7 @@ igm_redshifts = np.arange(0.0, max_redshift + 0.01, 0.01)
|
|
|
7
7
|
igm_wavelengths = np.arange(1.0, 1225.01, 1.0)
|
|
8
8
|
print(igm_redshifts.shape)
|
|
9
9
|
|
|
10
|
-
coefs = np.loadtxt("/
|
|
10
|
+
coefs = np.loadtxt("grids/lyman_series_coefs_inoue_2014_table2.txt")
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
def get_Inoue14_trans(rest_wavs, z_obs):
|
|
@@ -225,10 +225,10 @@ def make_table(z_array, rest_wavs):
|
|
|
225
225
|
fits.ImageHDU(name="wavs", data=rest_wavs),
|
|
226
226
|
fits.ImageHDU(name="zred", data=z_array)])
|
|
227
227
|
|
|
228
|
-
if os.path.exists("d_igm_grid_inoue14.fits"):
|
|
229
|
-
os.system("rm " + "d_igm_grid_inoue14.fits")
|
|
228
|
+
if os.path.exists("grids/d_igm_grid_inoue14.fits"):
|
|
229
|
+
os.system("rm " + "grids/d_igm_grid_inoue14.fits")
|
|
230
230
|
|
|
231
|
-
hdulist.writeto("d_igm_grid_inoue14.fits")
|
|
231
|
+
hdulist.writeto("grids/d_igm_grid_inoue14.fits")
|
|
232
232
|
|
|
233
233
|
|
|
234
234
|
make_table(igm_redshifts, igm_wavelengths)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: chanter
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.7
|
|
4
4
|
Summary: Simple galaxy spectral modelling and fitting
|
|
5
5
|
Author: Struan Stevenson
|
|
6
6
|
Author-email: struan.stevenson@ed.ac.uk
|
|
@@ -16,3 +16,4 @@ Dynamic: requires-dist
|
|
|
16
16
|
Dynamic: summary
|
|
17
17
|
|
|
18
18
|
CHANTER is a simple galaxy spectral energy distribution (SED) modelling/fitting code, based on the larger BAGPIPES code, of astronomical literary fame. CHANTER provides the barebones of Stellar Population Synthesis (SPS), as well as redshift and dust/IGM attenuation effects, and is written in a simple and digestible format, ideal for learning the theory behind larger spectral fitting software codes.
|
|
19
|
+
Currently, I cannot include the SSP/IGM grids in the package due to PyPi size limitations, but this is being appealed.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
chanter/__init__.py,sha256=bubSIcCkkzRcatq5ry6iSidWzj4YK8HqTvelHLunHJs,119
|
|
2
|
-
chanter/galaxy_fitter.py,sha256=
|
|
2
|
+
chanter/galaxy_fitter.py,sha256=HhZ3cawiDMSaDI2EBkza9lWWtE83vIh3bkQCgV77J0g,3654
|
|
3
3
|
chanter/model_galaxy.py,sha256=kYkuEO0VTyr9S84efzHYOoWXaYAp8VYXid6y4QZePaI,7993
|
|
4
4
|
chanter/grids/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
chanter/utils/__init__.py,sha256=hn-ho-lJeT0evKXL1tV5jX0cR4meSlJmPcdxC49cLok,34
|
|
6
6
|
chanter/utils/filter_set.py,sha256=EITLa2c3FG3n1-v7KatKRwHCRyfZ4TTjsi_WM7Bz64k,6819
|
|
7
|
-
chanter/utils/make_igm_grid.py,sha256=
|
|
8
|
-
chanter-0.0.
|
|
9
|
-
chanter-0.0.
|
|
10
|
-
chanter-0.0.
|
|
11
|
-
chanter-0.0.
|
|
7
|
+
chanter/utils/make_igm_grid.py,sha256=nO3NvO-l15oG65mgf48FH3QdatxCfgPT_kqwZzO14CA,10280
|
|
8
|
+
chanter-0.0.7.dist-info/METADATA,sha256=GNWpocrgzNIbl5tV6MPR5S1VCtugOWBLZvheocloOpc,919
|
|
9
|
+
chanter-0.0.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
10
|
+
chanter-0.0.7.dist-info/top_level.txt,sha256=Q23dLK1syz0D-XIZ6zeY6TOZ7BQsC-BLqRiVQE7_udk,8
|
|
11
|
+
chanter-0.0.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|