calamari.simulate#

Generate synthetic MPMS3 inputs and physics-based signals.

Files are generated in temporary directories for tests and examples; no real instrument exports are committed. mpms3_lines and write_mpms3_file use invented metadata and explicit DC/VSM/AC channels. Their timestamp offset checks that date parsing is independent of the numeric epoch, without modelling an instrument clock.

Functions

curie_weiss_chi

Curie-Weiss susceptibility chi(T) = C / (T - theta) + chi0.

mpms3_lines

Build the lines of a synthetic MPMS3-dialect [Header]/[Data] file.

mpms3_raw_lines

Build the lines of a synthetic MPMS3 DC raw-data file.

synthetic_chi_peak

A Gaussian peak on a flat background, for transition-detection tests.

synthetic_mh_curve

A saturating M(H) curve: m_sat_emu * tanh(H / h_knee_oe).

write_mpms3_file

Write mpms3_lines() output to path and return it.

write_mpms3_raw_file

Write mpms3_raw_lines() output to path and return it.