WARNING: Breaking changes
The `lgdo`, `raw` and `dsp` packages have been outsourced to dedicated packages:
- `lgdo` -> [legend-exp/legend-pydataobj](https://github.com/legend-exp/legend-pydataobj)
- `raw` -> [legend-exp/legend-daq2lh5](https://github.com/legend-exp/legend-daq2lh5)
- `dsp` -> [legend-exp/dspeed](https://github.com/legend-exp/dspeed)
Installing pygama will automatically download the three packages above. Importing `pygama.{lgdo,raw,dsp}` still works, but emits a deprecation warning. These pygama subpackages will be completely removed in a future release.
Migration guide
Minimal changes are required to existing user code:
1. Update your import statements:
python
import lgdo formerly pygama.lgdo
import daq2lh5 formerly pygama.raw
import dspeed formerly pygama.dsp
1. DSP configuration dictionaries should be updated to import processors from `dspeed.processors` (and not `pygama.dsp.processors`), i.e.:
json
{
"processors": {
"wf_blsub": {
"function": "bl_subtract",
"module": "dspeed.processors",
"args": ["waveform", "baseline", "wf_blsub"],
"unit": "ADC"
}
}
}
What's Changed
* Fixed FFTW processors for use with refactor by iguinn in https://github.com/legend-exp/pygama/pull/499
* Remove `pygama.{lgdo,raw,dsp}` subpackages by gipert in https://github.com/legend-exp/pygama/pull/500
* Updates to energy calibration to fix issues found and to a/e to combine multiple calibration runs by ggmarshall in https://github.com/legend-exp/pygama/pull/507
* Fix Pandas `FutureWarning` about concatenating empty dataframes by gipert in https://github.com/legend-exp/pygama/pull/511
* Improve `tcm.py` docstring by jasondet in https://github.com/legend-exp/pygama/pull/509
* Add links to external packages to README.md by jasondet in https://github.com/legend-exp/pygama/pull/510
* Loosen version bounds on other LEGEND packages by gipert in https://github.com/legend-exp/pygama/pull/512
**Full Changelog**: https://github.com/legend-exp/pygama/compare/v1.3.2...v1.4.0