omfpandas.blockmodel.blockmodel_to_parquet
- omfpandas.blockmodel.blockmodel_to_parquet(blockmodel, out_path=None, variables=None, allow_overwrite=False)[source]
Convert blockmodel to a Parquet file.
- Parameters:
blockmodel (BlockModel) – The BlockModel to convert.
out_path (Optional[Path]) – The path to the Parquet file to write. If None, a file with the blockmodel name is
created.
variables (Optional[list[str]]) – The variables to include in the DataFrame. If None, all variables are included.
allow_overwrite (bool) – If True, overwrite the existing Parquet file. Default is False.
- Raises:
FileExistsError – If the file already exists and allow_overwrite is False.