mimical 0.0.9__py3-none-any.whl → 0.1.0__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
|
@@ -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("
|
|
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("
|
|
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'
|
|
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,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=
|
|
3
|
+
mimical/fitting/fitter.py,sha256=jFFTRj2nsX1pchQdB9hxjxjvMNJyyF3qrpwOJTNakXM,8722
|
|
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=RW6PgrX3UbafXmUnthV0mttKRjeUnS03eeX1c6fgZHU,3131
|
|
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.
|
|
10
|
-
mimical-0.0.
|
|
11
|
-
mimical-0.0.
|
|
12
|
-
mimical-0.0.
|
|
9
|
+
mimical-0.1.0.dist-info/METADATA,sha256=0NZaA2PH7hV235TCt0u_nL5B3GpLHZXWCqFLqLzJRwM,831
|
|
10
|
+
mimical-0.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
11
|
+
mimical-0.1.0.dist-info/top_level.txt,sha256=z6HTYpsoNjLUFayXjn8WyjX8C1mIbZw8Arb334cUbwc,8
|
|
12
|
+
mimical-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|