Warning: Trying to access array offset on value of type null in /home/site/wwwroot/lib/plugins/move/action/rename.php on line 42

Warning: Cannot modify header information - headers already sent by (output started at /home/site/wwwroot/lib/plugins/move/action/rename.php:42) in /home/site/wwwroot/inc/Action/Export.php on line 106

Warning: Cannot modify header information - headers already sent by (output started at /home/site/wwwroot/lib/plugins/move/action/rename.php:42) in /home/site/wwwroot/inc/Action/Export.php on line 106
cif_to_inp_format

Script for reading cif files and producing Str in jEdit

The file below is a script written in Python by Matthew Chambers in order to read .cif files and produce a suitable output in jEdit for TOPAS. The .exe was created by using pyinstaller. The initial Python script is also available for download so that it can be easily seen how the script works.

https://github.com/chambersms1/TOPAS-cif-reader-for-jEdit

The .exe file needs to be added to your TOPAS directory. This script was created as the format for .cif files on ICSD changed such that cif1.exe no longer can detect the space group. The line:

_symmetry_space_group_name_H-M

has been changed to:

_space_group_name_H-M_alt

This script can read both and can easily be updated to accommodate any other formatting changes. One way it differs from cif1.exe is that the phase name is extracted from the chemical composition as opposed to the mineral name.

Add the following to your_local.insert.xml: