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 Fileline, so the file is recognised as MPMS3 by itsBYAPPprefix alone.BYAPPisMPMS3 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 asRaw Position (mm)andRaw Voltage (V).raw_voltage_v (
ArrayLike) – Required. Written asRaw Position (mm)andRaw Voltage (V).processed_voltage_v (
ArrayLike|None) –Processed Voltage (V),Fixed C Fitted (V)andFree C Fitted (V). Real files always carry all three, so they are always written; each defaults to a copy ofraw_voltage_v.fixed_fit_v (
ArrayLike|None) –Processed Voltage (V),Fixed C Fitted (V)andFree C Fitted (V). Real files always carry all three, so they are always written; each defaults to a copy ofraw_voltage_v.free_fit_v (
ArrayLike|None) –Processed Voltage (V),Fixed C Fitted (V)andFree C Fitted (V). Real files always carry all three, so they are always written; each defaults to a copy ofraw_voltage_v.time_stamp_s (
ArrayLike|None) –Time Stamp (sec); defaults to one second per row.sample_material (
str|None) – Written as a reversedINFOline when not None.date (
str) – TheFILEOPENTIMEtokens, as formpms3_lines().time_str (
str) – TheFILEOPENTIMEtokens, as formpms3_lines().
- Return type:
- Returns:
list[str]– File lines, ready for"\n".join(...)(seewrite_mpms3_raw_file()).