Skip to content

Commit

Permalink
Plotting Library (#467)
Browse files Browse the repository at this point in the history
* PlottingLibrary

New library collecting all plotting functions for the tutorial notebooks

* Adding RMF and ARF in FITS format

* Notebook updated

* Update PlottingLibrary.py

* Notebooks fixed and ran fully.

Some veneer function calls directed to the new plotting library.

Some text also updated.

* Synthetic data changed to match Modeling tutorial.

Also: Comments in the tutorial updated, likelihood check values in examples updated, and number if sampling steps/iterations reduced in the tutorial to make it faster.

---------

Co-authored-by: Tuomo Salmi <[email protected]>
  • Loading branch information
sguillot and thjsal authored Dec 13, 2024
1 parent 74fc39d commit d3458ac
Show file tree
Hide file tree
Showing 13 changed files with 24,545 additions and 7,128 deletions.
358 changes: 182 additions & 176 deletions docs/source/Instrument_synergy.ipynb

Large diffs are not rendered by default.

1,224 changes: 501 additions & 723 deletions docs/source/Modeling.ipynb

Large diffs are not rendered by default.

379 changes: 128 additions & 251 deletions docs/source/Modeling_without_statistics.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/examples_modeling_tutorial/TestRun_BB.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 461,7 @@ def transform(self, p, **kwargs):
likelihood.externally_updated = True

# let's require that checks pass before starting to sample
true_logl = -26947.474150
true_logl = -2.6883527522e 04
likelihood.check(None, [true_logl], 1.0e-6,physical_points=[p],force_update=True)

if __name__ == '__main__': # sample from the posterior
Expand Down
2 changes: 1 addition & 1 deletion examples/examples_modeling_tutorial/TestRun_Num.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 620,7 @@ def transform(self, p, **kwargs):
'verbose': True}

# let's require that checks pass before starting to sample
true_logl = -6.6981424550e 04
true_logl = -6.7261415434e 04
likelihood.check(None, [true_logl], 1.0e-6,physical_points=[p],force_update=True)

if __name__ == '__main__': # sample from the posterior
Expand Down
2 changes: 1 addition & 1 deletion examples/examples_modeling_tutorial/TestRun_NumBeam.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 590,7 @@ def transform(self, p, **kwargs):
'verbose': True}

# let's require that checks pass before starting to sample
true_logl = -6.7210627096e 04
true_logl = -6.7497252832e 04
likelihood.check(None, [true_logl], 1.0e-6,physical_points=[p],force_update=True)

if __name__ == '__main__': # sample from the posterior
Expand Down
Loading

0 comments on commit d3458ac

Please sign in to comment.