chanter 0.0.5__tar.gz → 0.0.8__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.
@@ -1,9 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chanter
3
- Version: 0.0.5
3
+ Version: 0.0.8
4
4
  Summary: Simple galaxy spectral modelling and fitting
5
5
  Author: Struan Stevenson
6
6
  Author-email: struan.stevenson@ed.ac.uk
7
+ Description-Content-Type: text/markdown
7
8
  Requires-Dist: numpy
8
9
  Requires-Dist: astropy
9
10
  Requires-Dist: matplotlib
@@ -12,7 +13,12 @@ Requires-Dist: nautilus-sampler
12
13
  Dynamic: author
13
14
  Dynamic: author-email
14
15
  Dynamic: description
16
+ Dynamic: description-content-type
15
17
  Dynamic: requires-dist
16
18
  Dynamic: summary
17
19
 
20
+ # Chanter
21
+
18
22
  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.
23
+
24
+ Currently, I cannot include the SSP/IGM grids in the package due to PyPi size limitations, but this is being appealed.
@@ -0,0 +1,5 @@
1
+ # Chanter
2
+
3
+ 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.
4
+
5
+ Currently, I cannot include the SSP/IGM grids in the package due to PyPi size limitations, but this is being appealed.
@@ -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=1000)
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
@@ -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("/Users/struanstevenson/Desktop/research/CHANTER/lyman_series_coefs_inoue_2014_table2.txt")
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,9 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: chanter
3
- Version: 0.0.5
3
+ Version: 0.0.8
4
4
  Summary: Simple galaxy spectral modelling and fitting
5
5
  Author: Struan Stevenson
6
6
  Author-email: struan.stevenson@ed.ac.uk
7
+ Description-Content-Type: text/markdown
7
8
  Requires-Dist: numpy
8
9
  Requires-Dist: astropy
9
10
  Requires-Dist: matplotlib
@@ -12,7 +13,12 @@ Requires-Dist: nautilus-sampler
12
13
  Dynamic: author
13
14
  Dynamic: author-email
14
15
  Dynamic: description
16
+ Dynamic: description-content-type
15
17
  Dynamic: requires-dist
16
18
  Dynamic: summary
17
19
 
20
+ # Chanter
21
+
18
22
  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.
23
+
24
+ Currently, I cannot include the SSP/IGM grids in the package due to PyPi size limitations, but this is being appealed.
chanter-0.0.8/setup.py ADDED
@@ -0,0 +1,29 @@
1
+ import setuptools
2
+ from setuptools import setup
3
+ from pathlib import Path
4
+
5
+ this_directory = Path(__file__).parent
6
+ long_description = (this_directory / "README.md").read_text()
7
+
8
+ setup(
9
+ name='chanter',
10
+
11
+ version='0.0.8',
12
+
13
+ description='Simple galaxy spectral modelling and fitting',
14
+
15
+ long_description=long_description,
16
+
17
+ long_description_content_type='text/markdown',
18
+
19
+ author='Struan Stevenson',
20
+
21
+ author_email='struan.stevenson@ed.ac.uk',
22
+
23
+ packages= setuptools.find_packages(),
24
+
25
+ package_data = {'': ['*.txt', '*.fits'],},
26
+
27
+ install_requires=["numpy", "astropy", "matplotlib", "spectres", "nautilus-sampler"],
28
+
29
+ )
chanter-0.0.5/README.md DELETED
@@ -1 +0,0 @@
1
- # Chanter
chanter-0.0.5/setup.py DELETED
@@ -1,23 +0,0 @@
1
- import setuptools
2
- from setuptools import setup
3
-
4
- setup(
5
- name='chanter',
6
-
7
- version='0.0.5',
8
-
9
- description='Simple galaxy spectral modelling and fitting',
10
-
11
- long_description='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.',
12
-
13
- author='Struan Stevenson',
14
-
15
- author_email='struan.stevenson@ed.ac.uk',
16
-
17
- packages= setuptools.find_packages(),
18
-
19
- package_data = {'': ['*.txt', '*.fits'],},
20
-
21
- install_requires=["numpy", "astropy", "matplotlib", "spectres", "nautilus-sampler"],
22
-
23
- )
File without changes
File without changes
File without changes