MMCIFWriter β File Writingο
- class sloth.mmcif.writer.MMCIFWriter[source]ο
Bases:
BaseWriterHigh-performance mmCIF writer using gemmi backend with SLOTHβs elegant API.
This writer uses gemmiβs optimized C++ backend for fast writing while maintaining the exact same API as the original SLOTH writer.
- write(file_obj, mmcif)[source]ο
Write SLOTH data structure to file using gemmi backend
- Parameters:
file_obj (IO) β The file object to write to
mmcif (MMCIFDataContainer) β SLOTH MMCIFDataContainer
- Return type:
- Returns:
None