5
$\begingroup$

I have encountered an error using cif2cell while covering a CIF file from COD to quantum ESPRESSO format. The error is as follows.

command typed: $cif2cell crystal.cif -p quantum-espresso -o crystal.in

***Warning: Space group operation check failed for Hall symbol -P 1 (H-M symbol P-1). ***Warning: Site occupancies not found, assuming all occupancies = 1. Traceback (most recent call last): File “/usr/local/bin/cif2cell”, line 1574, in docstring = StandardDocstring() File “/usr/local/bin/cif2cell”, line 1021, in StandardDocstring tmpstring2 += “. Reference number : “+ref.databasecode TypeError: must be str, not NoneType

This seems to be a bug in the Quantum Mobile platform too.

$\endgroup$
  • $\begingroup$ If that program (cif2cell) is still maintained, it's best to report such problems to the developers. $\endgroup$ – marcin Oct 11 at 20:39
1
$\begingroup$

There is a way around it you can include a NULL database code [using the _cod_database_code keyword ]under the data_global keyword in CIF and it will work.

example:

data_global
_cod_database_code               None

This worked for me. Since the cod_databse_code is just for printing the first few comments in the input file created by cif2cell it will resolve the issue without affecting the crystal information which we intend to provide.

| cite | improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.