On Mon, May 22, 2017 at 04:29:02PM -0700, Parham Rohani wrote:
...
Hi Parham,
Your CIF file indeed contains a duplicate entry for
_diffrn_radiation_wavelength_id just as the error
message says. It also has a plenty of extra
information related to Rietveld refinement so it is
not really a database file, but a CIF file exported
from some structure refinement program.
A better choice is to use the original CIF from the database,
which is actually the Crystallography Open Database, not ICSD:
http://www.crystallography.net/cod/cif/2/10/47/2104737.cif.
Importing that file however fails as well with error message
Syntax error in input file: last value parsed was u'kd5037.cif'
The line 62 just below "kd5037.cif" contains a value with
parentheses, which seems to cause the CIF reading failure:
_cod_data_source_block (5Ca2)_Silicon
The CIF file can be loaded after quoting that value as
'(5Ca2)_Silicon' or removing parentheses so it is 5Ca2_Silicon.
You can also remove that line completely, because it
does not provide any structure data.
I don't know enough about the CIF format to tell if these
errors are due to files not following standard format
or if it shows some bug in the PyCifRW package which
we use for parsing CIF files. I am CC-ing James
Hester, the author of PyCifRW, who is much better
positioned to comment on that.
Hope this helps,
Pavol
--
Dr. Pavol Juhas
Computational Science Initiative
Brookhaven National Laboratory
P.O. Box 5000
Upton, NY 11973-5000