Tutorials (Jupyter notebooks)#
Tutorials are currently available as Jupyter notebooks on GitHub.
Contents:
- Handling LH5 data
- Browsing waveforms with the
WaveformBrowser - Introduction to Digital Signal Processing
- Introduction to Pygama Math and Fitting
- Set up the Python environment
- We get access to
scipy’srv_continuousmethods for free - Fast methods:
.get_pdfand.get_cdf - The remaining methods are helpful for binned and unbinned fitting:
norm_pdf,norm_cdf,pdf_extandcdf_ext - Writing our own
pygama.mathdistribution: conventions and requirements - Adding distributions with
sum_dists - A little about
sum_dists - something to note: all parameter arrays passed to
sum_distmethods must benumpyarrays; for example, see that we must turnm.valuesintonp.array(m.values)in order for it to work - The
fracsflag in thesum_distsconstructor - Conclusion