mimical 0.0.4__tar.gz → 0.0.5__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.
- {mimical-0.0.4 → mimical-0.0.5}/PKG-INFO +1 -1
- {mimical-0.0.4 → mimical-0.0.5}/mimical/fitting/fitter.py +3 -2
- {mimical-0.0.4 → mimical-0.0.5}/mimical.egg-info/PKG-INFO +1 -1
- {mimical-0.0.4 → mimical-0.0.5}/setup.py +1 -1
- {mimical-0.0.4 → mimical-0.0.5}/README.md +0 -0
- {mimical-0.0.4 → mimical-0.0.5}/mimical/__init__.py +0 -0
- {mimical-0.0.4 → mimical-0.0.5}/mimical/fitting/__init__.py +0 -0
- {mimical-0.0.4 → mimical-0.0.5}/mimical/fitting/prior_handler.py +0 -0
- {mimical-0.0.4 → mimical-0.0.5}/mimical/plotting/__init__.py +0 -0
- {mimical-0.0.4 → mimical-0.0.5}/mimical/plotting/plotting.py +0 -0
- {mimical-0.0.4 → mimical-0.0.5}/mimical/utils/__init__.py +0 -0
- {mimical-0.0.4 → mimical-0.0.5}/mimical/utils/filter_set.py +0 -0
- {mimical-0.0.4 → mimical-0.0.5}/mimical.egg-info/SOURCES.txt +0 -0
- {mimical-0.0.4 → mimical-0.0.5}/mimical.egg-info/dependency_links.txt +0 -0
- {mimical-0.0.4 → mimical-0.0.5}/mimical.egg-info/requires.txt +0 -0
- {mimical-0.0.4 → mimical-0.0.5}/mimical.egg-info/top_level.txt +0 -0
- {mimical-0.0.4 → mimical-0.0.5}/setup.cfg +0 -0
|
@@ -58,7 +58,7 @@ class mimical(object):
|
|
|
58
58
|
"""
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
def __init__(self, id, images, filt_list, psfs, user_prior, astropy_model=models.Sersic2D(), pool=None):
|
|
61
|
+
def __init__(self, id, images, filt_list, psfs, user_prior, astropy_model=models.Sersic2D(), pool=None, timeout=3600):
|
|
62
62
|
|
|
63
63
|
self.id = id
|
|
64
64
|
|
|
@@ -82,6 +82,7 @@ class mimical(object):
|
|
|
82
82
|
self.t0 = time.time()
|
|
83
83
|
self.calls = 0
|
|
84
84
|
|
|
85
|
+
self.timeout=timeout
|
|
85
86
|
self.pool = pool
|
|
86
87
|
|
|
87
88
|
|
|
@@ -155,7 +156,7 @@ class mimical(object):
|
|
|
155
156
|
t0 = time.time()
|
|
156
157
|
#sampler = Sampler(self.fitter_prior, self.lnlike, n_live=400, filepath= dir_path+'/bogout'+f'/{self.id}.hdf5', resume=True, pool=self.pool)
|
|
157
158
|
sampler = Sampler(self.fitter_prior, self.lnlike, n_live=400, pool=self.pool)
|
|
158
|
-
sampler.run(verbose=True, timeout=
|
|
159
|
+
sampler.run(verbose=True, timeout=self.timeout)
|
|
159
160
|
print(f"Sampling time (minutes): {(time.time()-t0)/60}")
|
|
160
161
|
|
|
161
162
|
# Sample the posterior information
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|