Skip to content

Releases: jyangch/heapy

v0.2.1

Choose a tag to compare

@jyangch jyangch released this 30 Jun 06:04

Comparison: v0.2.0...v0.2.1

🏗️ Signal module restructured

The heapy/auto signal layer was consolidated into a unified architecture:

  • New signal.py and signal_utils.py replace the separate ggsignal.py, ppsignal.py, and polybase.py modules (all removed).
  • pgSignal / ppSignal / ggSignal now 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_fixed attribute — unifies background-locked state across pgSignal/ppSignal/ggSignal (replaces internal isinstance checks via a single _bkg_fixed guard).
  • block_integral — accurate definite-integral evaluation on Polynomial and CompositePolynomial.
  • SNR-based pulse detection in the Txx classes (pgTxx uses sort_res).
  • normalize_ignore — standardize/manage ignore intervals for background fitting.
  • Random-seed parameter for reproducible simulations and data generation.
  • extract_curve save flag on Event.

🔧 Fixes

  • Prevent infinite recursion in _ensure_ftp_connection on connection failure.
  • Correct inverted index so max_bin force-close works in rebin.
  • Ensure integer input for bayesian_blocks to 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_intervalfind_peak
  • _gap_intgap_int
  • format_boxed_messageformat_message
  • New shared util modules: temp_utils.py, tools.py (json_dump moved here).
  • Streamlined exp assignment and improved error messages throughout the signal code.
  • cached_property now 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

Choose a tag to compare

@jyangch jyangch released this 01 Apr 15:09
v0.2.0

v0.1.8

Choose a tag to compare

@jyangch jyangch released this 23 Oct 09:16

The polynomial background fitting module has been modified as follows: a first- to sixth-order polynomial is used to fit the background, and the optimal polynomial model is selected based on the BIC.

v0.1.5

Choose a tag to compare

@jyangch jyangch released this 12 Aug 05:15
  1. 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.
  1. 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.

v0.1.3

Choose a tag to compare

@jyangch jyangch released this 10 Aug 08:50
update

v0.1.1

Choose a tag to compare

@jyangch jyangch released this 31 Jul 03:08
update