goldpan.legacy¶
The flat module names of the first versions (pulse_quantities, pulse_cuts, …), as aliases of the package.
Before the package existed, the library was eight flat modules, and the notebooks, notes and guides import them
(import pulse_cuts as pc). They are kept as thin files in python/ that call flat_namespace below, so that they
are the same code as the package with two differences, both for the sake of those notebooks, which all analyse the
Run 76 readout:
a function that takes a
configgets the Run 76 readout as the default;pulse_config.PulseConfighas the Run 76 values as defaults (and warns when 1.6e-6 s is given, the value those notebooks used wrongly until 2026-10-22), andDEFAULT_CONFIG = PulseConfig().
These defaults are frozen at the values the notebooks and notes were run with, including the 1000-sample pretrigger window: the
Run 76 pulses start at about sample 500, so goldpan.config.DCRC_RUN76 has 500 since 2026-10-28 (issue 154), but changing the
flat defaults would change the results of every notebook that is run again. Pass a config (or n_samples=500) to get the
window before the pulse.
New code should import goldpan.* and name its readout. The flat names will be removed in a later release.
Functions
|
|
|
The names of the package module |
Classes
|
|
- class goldpan.legacy.PulseConfig(pretrigger_samples=1000, glitch_samples=10, sample_period_s=8e-07)[source]¶
Bases:
PulseConfiggoldpan.config.PulseConfigwith the Run 76 readout as defaults (the flatpulse_config.PulseConfig).- pretrigger_samples: int = 1000¶
Number of leading samples that make up the pretrigger (baseline) window.
- goldpan.legacy.alias_function(func)[source]¶
funcunder the flat name:DEFAULT_CONFIGis the default of itsconfigargument (if it has one).The wrapper keeps the signature, docstring and
@statustag;flat_namespacesets its__module__to the flat module, so thatlist_statusesand the documentation tools see it as that module’s function.