calamari.simulate.mpms3_raw_lines#

calamari.simulate.mpms3_raw_lines(*, raw_position_mm, raw_voltage_v, processed_voltage_v=None, fixed_fit_v=None, free_fit_v=None, time_stamp_s=None, sample_material='SyntheticSample', date='1/29/2020', time_str='10:00 AM')#

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

The per-scan file an MPMS3 DC measurement writes alongside its summary (BaseName.rw.dat): SQUID voltage against sample position for every scan, not one row per measured point. Reproduces an observed header shape, which differs from the summary’s in the two places role classification depends on:

  • The first comment reads ; DC Raw Data File (default extension .raw) – there is no ; MPMS3 Data File line, so the file is recognised as MPMS3 by its BYAPP prefix alone.

  • BYAPP is MPMS3 DC RAW DATA,1.0,1.1: the application name itself states the role, which is what lets a raw file be told from a summary without trusting its name.

Parameters:
  • raw_position_mm (ArrayLike) – Required. Written as Raw Position (mm) and Raw Voltage (V).

  • raw_voltage_v (ArrayLike) – Required. Written as Raw Position (mm) and Raw Voltage (V).

  • processed_voltage_v (ArrayLike | None) – Processed Voltage (V), Fixed C Fitted (V) and Free C Fitted (V). Real files always carry all three, so they are always written; each defaults to a copy of raw_voltage_v.

  • fixed_fit_v (ArrayLike | None) – Processed Voltage (V), Fixed C Fitted (V) and Free C Fitted (V). Real files always carry all three, so they are always written; each defaults to a copy of raw_voltage_v.

  • free_fit_v (ArrayLike | None) – Processed Voltage (V), Fixed C Fitted (V) and Free C Fitted (V). Real files always carry all three, so they are always written; each defaults to a copy of raw_voltage_v.

  • time_stamp_s (ArrayLike | None) – Time Stamp (sec); defaults to one second per row.

  • sample_material (str | None) – Written as a reversed INFO line when not None.

  • date (str) – The FILEOPENTIME tokens, as for mpms3_lines().

  • time_str (str) – The FILEOPENTIME tokens, as for mpms3_lines().

Return type:

list[str]

Returns:

list[str] – File lines, ready for "\n".join(...) (see write_mpms3_raw_file()).