Writers#

save_case(case, path, *, version=33)#

Serialize a case to a file path, dispatching by lower-case suffix.

Mirror of load_case(). .raw writes RAW; .rawx and .json write RAWX JSON. .m is intentionally unsupported.

Only v33 is supported today; case.rev is ignored for output selection so the file header matches the records actually written.

gpf.WRITER_BY_SUFFIX: dict#