get_model_count#

biotite.structure.io.pdbx.get_model_count(pdbx_file: CIFFile | CIFBlock | BinaryCIFFile | BinaryCIFBlock, data_block: str | None = None) → int[source]#

Get the number of models contained in a file.

Parameters:
pdbx_fileCIFFile or CIFBlock or BinaryCIFFile or BinaryCIFBlock

The file object.

data_blockstr, optional

The name of the data block. Default is the first (and most times only) data block of the file. If the data block object is passed directly to pdbx_file, this parameter is ignored.

Returns:
model_countint

The number of models.