Releases: jyangch/heapy
Releases · jyangch/heapy
Release list
v0.2.1
Comparison: v0.2.0...v0.2.1
🏗️ Signal module restructured
The heapy/auto signal layer was consolidated into a unified architecture:
- New
signal.pyandsignal_utils.pyreplace the separateggsignal.py,ppsignal.py, andpolybase.pymodules (all removed). pgSignal/ppSignal/ggSignalnow share one Bayesian-block pipeline.
✨ Features
pgSignal.rebin— reuse a fitted polynomial background at a different binning without rerunning the full pipeline; preserves NaN-gap semantics and dtype.- Public
bkg_fixedattribute — unifies background-locked state acrosspgSignal/ppSignal/ggSignal(replaces internalisinstancechecks via a single_bkg_fixedguard). block_integral— accurate definite-integral evaluation onPolynomialandCompositePolynomial.- SNR-based pulse detection in the Txx classes (
pgTxxusessort_res). normalize_ignore— standardize/manage ignore intervals for background fitting.- Random-seed parameter for reproducible simulations and data generation.
extract_curvesaveflag onEvent.
🔧 Fixes
- Prevent infinite recursion in
_ensure_ftp_connectionon connection failure. - Correct inverted index so
max_binforce-close works in rebin. - Ensure integer input for
bayesian_blocksto handle NaN-gap bins. - Ensure float dtype for left/right bounds in
classify_bins; consistent float handling across geometry/pipe modules.
♻️ Refactors / API renames
find_peak_interval→find_peak_gap_int→gap_intformat_boxed_message→format_message- New shared util modules:
temp_utils.py,tools.py(json_dumpmoved here). - Streamlined exp assignment and improved error messages throughout the signal code.
cached_propertynow uses fingerprinting for dependency tracking.
📚 Examples / housekeeping
- GBM and WXT example outputs regenerated; example directory layout reorganized.
- Added WXT spectrum response files (
ep.arf,ep.rmf). - Version bumped to 0.2.1.
v0.2.0
v0.1.8
v0.1.5
- Module Renaming and Restructuring:
- The submodule autobs is renamed to auto, and temporal is renamed to temp.
- Within the data directory, only filefinder and retrieve remain. The data-processing modules event, xselect, and batpipe are moved into a newly created folder named pipe, with xselect further renamed to image. Additionally, the modules geometry and location are moved into a newly created folder named geos.
- Function Modifications and Additions:
- In retrieve.gbmRetrieve.from_burst, two new parameters, skip_tte and skip_healpix, are added to allow skipping the retrieval of TTE files and Healpix files, respectively.
- In retrieve.gbmRetrieve.from_utc, two parameters, skip_tte and skip_poshist, are added to allow skipping the retrieval of TTE files and PosHist files, respectively.
- The original response generation functionality has been migrated to the corresponding data analysis modules (e.g., event and image).
- In the image module, a new function, check_pileup, is implemented to perform pile-up checks for EP-FXT and Swift/XRT data.