calamari.exceptions.MeasurementFamilyError#

exception calamari.exceptions.MeasurementFamilyError#

A question about a file’s measurement families could not be answered.

A single MPMS3 file can hold more than one family of measurement – a combined run writes one VSM row and one AC row per setpoint, and another interleaves AC and DC scans. This is raised when:

  • a caller asks of_type() for a family the file does not contain, which is a caller error in the same sense as naming a column that is not there;

  • the Transport Action column carries a code calamari has no family for. Codes 1-5 are vendor-documented and 6 is observed; a wider set means the table needs extending against a real file, not guessing;

  • a row’s Transport Action code and its populated columns disagree about which family it belongs to – an AC-coded row carrying only a DC moment, say. Silence is not disagreement: a row with nothing populated contradicts nothing and is left alone.

Deliberately raised only when the family question is asked, never during calamari.io.load(). A file whose codes calamari cannot read still parses, and its temperature, field and moment are still there to be had – refusing the whole file over a question the caller may never ask would be the wrong trade (IO-5 keeps loading strict about dialects, not about every column’s vocabulary).