mimical 0.0.4__py3-none-any.whl → 0.0.5__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.
mimical/fitting/fitter.py CHANGED
@@ -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=2700)
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mimical
3
- Version: 0.0.4
3
+ Version: 0.0.5
4
4
  Summary: Intesity modelling of multiply-imaged objects
5
5
  Author: Struan Stevenson
6
6
  Author-email: struan.stevenson@ed.ac.uk
@@ -1,12 +1,12 @@
1
1
  mimical/__init__.py,sha256=cBuyDtPwn6KcIkjlT7oct36jigvYDJmbZNmnt1I1QJU,75
2
2
  mimical/fitting/__init__.py,sha256=xcnLoeBDtt4Le5NhD6GhJe2ZRPNSsEySRHFYNuJyNEQ,69
3
- mimical/fitting/fitter.py,sha256=5JOJnPmvISlZ5ZJM5Nz1sYVj-uCCOmONXzbvCCj8ZnY,7690
3
+ mimical/fitting/fitter.py,sha256=dzPbsJ6DkllZHFil-rZNFXzFKsEX_3kyVGjyt6_nm2M,7741
4
4
  mimical/fitting/prior_handler.py,sha256=yXvxbohS6f94CMRyeIViFc83hRYAj82IZNA5mzhMSRw,4193
5
5
  mimical/plotting/__init__.py,sha256=I1ZpQA48g-YPkqwrDGgTrqaTxDUgR8n0mbBX0MdbZtU,30
6
6
  mimical/plotting/plotting.py,sha256=OWTR-uOT4UpBw0XcKpl_uFSODuEdcfw7nIk3Sf1cOGY,2646
7
7
  mimical/utils/__init__.py,sha256=yolMgYFpvXoHuyV-ijGo26SQ0_niw0gz__iAFgdiQiY,35
8
8
  mimical/utils/filter_set.py,sha256=EITLa2c3FG3n1-v7KatKRwHCRyfZ4TTjsi_WM7Bz64k,6819
9
- mimical-0.0.4.dist-info/METADATA,sha256=3fUVREfA3Vga9uBlFmRGh1POh_d2okQM8O3fTC2OdzQ,831
10
- mimical-0.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
- mimical-0.0.4.dist-info/top_level.txt,sha256=z6HTYpsoNjLUFayXjn8WyjX8C1mIbZw8Arb334cUbwc,8
12
- mimical-0.0.4.dist-info/RECORD,,
9
+ mimical-0.0.5.dist-info/METADATA,sha256=7urHqR68dVp4-X8i-DOj5BRjoQ7apWHVytNwm99yen8,831
10
+ mimical-0.0.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
11
+ mimical-0.0.5.dist-info/top_level.txt,sha256=z6HTYpsoNjLUFayXjn8WyjX8C1mIbZw8Arb334cUbwc,8
12
+ mimical-0.0.5.dist-info/RECORD,,