CVineStructure.to_file

CVineStructure.to_file(self, filename: str) None

Writes the structure into a JSON or CBOR file.

Filenames ending in .cbor are written as CBOR. All other filenames are written as JSON for backwards compatibility. The written file contains two values: "array" for the structure triangular array and "order" for the order vector.

Parameters:
filenamestr

The name of the file to write.