scippneutron.io.cif.save_cif#

scippneutron.io.cif.save_cif(fname, content, *, comment='')[source]#

Save data blocks to a CIF file.

To use, first create scippneutron.io.cif.Block objects to collect and structure data for the file, then use this function to write the file.

Parameters:
  • fname (str | Path | TextIOBase) – Path or file handle for the output file.

  • content (Block | Iterable[Block] | CIF) – One or more CIF data blocks or a CIF object to write to the file.

  • comment (str, default: '') – Optional comment that can be written at the top of the file.

Return type:

None