Changelog¶
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]¶
[0.4.0] - 2026-10-19¶
Added¶
Measurement.get_heat_between(start_s, end_s)returns the heat released between two times. The limits can be one time for all samples or one time per sample (dict orpd.Serieskeyed bysample_short), e.g. the onset fromget_mainpeak_params().
Fixed¶
Measurement.apply_tian_correction()withoutprocessparamscrashed with anAttributeError; it now uses the instance's parameters.Measurement.get_ascending_flank_tangent()crashed because it called a removed method. It works again, andflank_fraction_start,flank_fraction_end,window_sizeandcutoff_minoverride the correspondingprocessparamsvalues.regexwas dropped by the maximum-slope analysis, soget_maximum_slope(),get_mainpeak_params()andget_peak_onset_via_max_slope()returned max-slope results for all samples.Measurement.plot_by_category()was an empty stub; it again yields one plot per metadata group, as documented.PlottingParameters.plot_titleis now a proper dataclass field and can be passed to the constructor.- calocem no longer changes matplotlib's font settings. Importing it used to
set the global
font.familyto serif; plots now use your matplotlib style. - Plots:
get_peaksmarks the peaks in the color of each curve, without a file path in the title or repeated legend entries;get_astm_c1679_characteristicsshows one legend entry for the ASTM markers; the main peak plot ofget_mainpeak_paramsno longer shows the maximum slope point twice, labels the y axis correctly (W g⁻¹), and shows the dormant heat flow and the gradient in the selected heat unit instead of rounding the former to 0. - Exceptions re-raised by calocem now chain the original error (
raise ... from e).
Deprecated¶
Measurement.get_cumulated_heat_at_hours()is renamed toget_cumulative_heat_at_hours(), and its result columncumulated_heat_at_hourstocumulative_heat_j_g. The old method emits aDeprecationWarning; the old column is still included.- Arguments that had no effect now emit a
DeprecationWarningwhen passed:get_dormant_period_heatflow(cutoff_min, prominence, plot_right_boundary, show_plot),get_peak_onsets(show_plot, ax),get_maximum_slope(save_path, xunit),get_average_slope(save_path, xunit),get_peak_onset_via_max_slope(time_discarded_s, save_path, xscale, xunit, intersection),get_astm_c1679_characteristics(xscale),get_ascending_flank_tangent(show_plot, plotpath, ax)andMeasurement(new_code). UseProcessingParametersinstead.
Removed¶
- Internal plotting helpers that could no longer run
(
SimplePlotter.plot_flank_tangent,SimplePlotter.plot_onset_intersectionsand their privateMeasurementcallers). - Unused
requestsdependency.
Documentation¶
- Restructured the documentation: new quickstart on the home page, new pages Loading Data and Processing Parameters, revised Characteristic Values, Plotting and Tian Correction pages. The outdated how-to guide was merged into these pages.
- The reference now covers
ProcessingParametersand all parameter groups; the publicMeasurementmethods have numpy-style docstrings listing parameters, returned columns and units. - Fixed the Tian correction docs: a single time constant requires
tau2 = None. - Added a changelog page and a quickstart to the README.
- The figures of Characteristic Values are generated from the current code
by
scripts/make_doc_figures.py; an ASTM C1679 figure was added. - The main peak example on Characteristic Values uses
smoothing_1st_deriv = 1e-13; the former 1e-12 underestimated the maximum slope by about 40 %.
Internal¶
- CI now runs
ruffandmypy; both pass. The example scripts are run in CI. - Replaced two test scripts that swallowed exceptions with real tests.
[0.3.4] - 2026-05-28¶
Added¶
Measurement.save(path)andMeasurement.load(path). Persist a processedMeasurementto a single, user-named pickle file and restore it in a downstream script. The whole object is stored, so processed (e.g. downsampled) data, info, added metadata andprocessparamsare all preserved. This is a convenience cache, not an archive — the raw source files remain the source of truth, and a file that fails to load can be regenerated by re-running from the original folder. The.pklextension is recommended to keep the format explicit.
m = Measurement(folder, processparams=processparams)
m.save("run01.pkl")
# later, in another script
m = Measurement.load("run01.pkl")
Measurement.get_data_with_metadata(). Returns the measurement data joined with its added metadata as one tidy DataFrame, ready to export with.to_csv(...). Works on per-sample data (joining on the metadata id column) and afteraverage_by_metadata(joining on the group label and attaching only metadata that is constant within each group). Returns the data unchanged when no metadata has been added.
Changed¶
DownSamplingParameters.smoothing_factoris now scale-relative. It is scaled internally by the number of points and the heat-flow variance instead of being passed to the spline as an absolute residual target, so the same value behaves consistently regardless of heat-flow magnitude. The default changed from1e-10to1e-6. This changes which points adaptive downsampling selects.
Fixed¶
- Adaptive downsampling works again.
Measurement(..., processparams=pp)withpp.downsample.apply = Truehad silently returned the full-resolution data since the package refactor, because_apply_adaptive_downsamplingwas left as a no-op stub. It now downsamples per sample as documented. UnivariateSpline"s too small" warning removed. The spline fit during downsampling no longer emits a non-convergenceUserWarning.
[0.3.3] - 2026-05-06¶
Breaking Changes¶
- Pickle caching is now opt-in.
Measurement(folder=...)no longer writes_data.pickleand_info.pickleto the working directory by default. Passsave_cache=Trueexplicitly to enable it.
Migrate:
# old (implicit caching)
m = Measurement(folder)
# new — equivalent caching behavior
m = Measurement(folder, save_cache=True)
Added¶
save_cache: bool = Falsekwarg onMeasurement.__init__. Controls whether pickle cache files are written when loading from a folder. The existingcold_start=Falseread path is unchanged.
Documentation¶
- New tutorial notebook
docs/example_get_mainpeak_params.ipynbwalking throughget_mainpeak_params, with notebooks executed at docs build time so outputs stay in sync with the code. - Replaced stale
TAInstCalorimetryreferences and corrected the package name and PyPI URL acrossdocs/index.md,docs/how-to-guide.md,docs/quantification.md, anddocs/tian.md.
Internal¶
- Notebooks are now exercised under pytest via
nbmakeso doc examples cannot silently rot. nbstripoutconfigured to keep notebook diffs clean.
[0.3.2] - 2026-05-02¶
Added¶
- CSV files with a trailing comments column (e.g. annotations like "experiment interrupted and restarted") are now parsed correctly.
[0.3.0] - 2026-04-03¶
Breaking Changes¶
calocem.tacalorimetryhas been removed. The legacy monolithicMeasurementimplementation (tacalorimetry.py, ~3 400 lines) has been retired. The module now exists as a stub that raises aFutureWarningon import and forwards to the refactored implementation. The old and new implementations are not guaranteed to produce identical numerical results. Users who require the previous behaviour should pin tocalocem<0.3.0.
Migrate your imports:
# old
from calocem.tacalorimetry import Measurement
# new — preferred
from calocem import Measurement
# new — explicit
from calocem.measurement import Measurement
Added¶
- Public package API.
MeasurementandProcessingParametersare now importable directly from the top-level package:from calocem import Measurement, ProcessingParameters
Fixed¶
- Eliminated all pandas Copy-on-Write
FutureWarningandDeprecationWarningoccurrences triggered by chained assignment patterns inutils.pyandtacalorimetry.py. The package is now silent on pandas 2.x and compatible with the Copy-on-Write behaviour that becomes the default in pandas 3.0. float()called on a single-elementSeriesreplaced withfloat(series.iloc[0])to silence pandasDeprecationWarning.- Removed stray
print("hallo")debug statement from the data loading path.
[0.2.5] - 2026-04-03¶
Fixed¶
ipykernelmoved to dev dependencies — it is no longer installed as part of a normalpip install calocem. Users who need it for notebooks should install it explicitly (pip install ipykernel).- Replaced
logging.basicConfig()call at import time with a module-level logger. CaloCem no longer writesCaloCem.logto the working directory on import or hijacks the host application's log configuration.
Internal¶
/.cacheadded to.gitignoreto stop the mkdocs-git-committers cache from being tracked.- Manual exploration scripts (
script_test_*.py) moved fromtests/toexamples/where the other example scripts live. They are not pytest tests and were silently collected without asserting anything. - Removed unused live
import pysnooperfromtests/test_read_calo_data_xls.py.
[0.2.4] - 2025-09-28¶
- See repository history for changes prior to this changelog.