mimical 0.0.9__tar.gz → 0.1.0__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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mimical
3
- Version: 0.0.9
3
+ Version: 0.1.0
4
4
  Summary: Intesity modelling of multiply-imaged objects
5
5
  Author: Struan Stevenson
6
6
  Author-email: struan.stevenson@ed.ac.uk
@@ -161,10 +161,11 @@ class mimical(object):
161
161
  self.success = True
162
162
  self.samples = pd.read_csv(dir_path+'/mimical/posteriors' + f'/{self.id}.txt', delimiter=' ').to_numpy()
163
163
  fit_dic = dict(zip((np.array((list(self.fitter_prior.keys)))+"_50").tolist(), np.median(self.samples, axis=0).tolist()))
164
- print("Finished.")
164
+ print(f"Loading existing posterior at " + dir_path + '/mimical/posteriors' + f'/{self.id}.txt')
165
165
  print(" ")
166
166
  return fit_dic
167
167
 
168
+
168
169
  # Run sampler
169
170
  t0 = time.time()
170
171
  #sampler = Sampler(self.fitter_prior, self.lnlike, n_live=400, filepath= dir_path+'/bogout'+f'/{self.id}.hdf5', resume=True, pool=self.pool)
@@ -196,7 +197,7 @@ class mimical(object):
196
197
  # Return the median-parameter model
197
198
  fit_dic = dict(zip((np.array((list(self.fitter_prior.keys)))+"_50").tolist(), np.median(self.samples, axis=0).tolist()))
198
199
 
199
- print("Finished.")
200
+ print("Sampling finished successfully.")
200
201
  print(" ")
201
202
 
202
203
  return fit_dic
@@ -204,7 +205,7 @@ class mimical(object):
204
205
 
205
206
  def plot_model(self):
206
207
  if self.success != True:
207
- print(f'Failed sampling, cannot plot model for {self.id}.')
208
+ print(f'Sampling failed, cannot plot model for {self.id}.')
208
209
  else:
209
210
  # Plot and save the median-parameter fit
210
211
  Plotter().plot_median(self.images, self.wavs, self.convolved_models, self.samples, list(self.fitter_prior.keys), self.prior_handler)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mimical
3
- Version: 0.0.9
3
+ Version: 0.1.0
4
4
  Summary: Intesity modelling of multiply-imaged objects
5
5
  Author: Struan Stevenson
6
6
  Author-email: struan.stevenson@ed.ac.uk
@@ -8,7 +8,7 @@ long_description = (this_directory / "README.md").read_text()
8
8
  setup(
9
9
  name='mimical',
10
10
 
11
- version='0.0.9',
11
+ version='0.1.0',
12
12
 
13
13
  description='Intesity modelling of multiply-imaged objects',
14
14
 
File without changes
File without changes
File without changes