Skip to content

Commit

Permalink
Added script version to results file, part of issue rpoleski#93
Browse files Browse the repository at this point in the history
  • Loading branch information
rapoliveira committed Oct 25, 2023
1 parent f286b07 commit 4494d04
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/example_16/ulens_model_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -2311,6 +2311,11 @@ def _parse_results_EMCEE(self):
This version works with EMCEE version 2.X and 3.0.
"""
lst = [mm.__version__, __version__]
code_version = f"MulensModel and example versions: {lst}"
if self._yaml_results:
print(code_version, **self._yaml_kwargs)

accept_rate = np.mean(self._sampler.acceptance_fraction)
out = "Mean acceptance fraction: {0:.3f}".format(accept_rate)
print(out)
Expand Down

0 comments on commit 4494d04

Please sign in to comment.