-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating FEFF input from CIF Files #523
Comments
@Senjou123 Sorry for the trouble. In general, CIF is a poorly defined format. The tools we use for parsing them can parse many things called "CIF", but they sometimes fail. We know that many from the COD do work. I don't know about ICSD. The CIF database provided with Larix does have several structures for Pd. But: for a problem reading some other CIF file, you would have to provide an example. |
@Senjou123 I have tested with the following CIF file (ICSD 64918) and it works nicely with Larix |
Hi, Thank you both for your reply. I used that CIF file as an example. I have the same issue when trying to run other CIF files using the "Generate FEFF input from general structures, Run FEFF". I tried for example to run PdCl2 (ICSD 421215), Au3Pd, (ICSD 180873), PdO2 (ICSD 647283), and they all show up with the same error as the one I posted before Oddly enough I redownloaded the files and now it works. Could there be a problem with importing the files from OneDrive? |
@Senjou123 I doubt that the file's location is the issue -- your report shows that the file's content was read, and the problem occurs when it is being parsed. But (again) for a problem reading some external CIF file, you will have to provide an example file. |
Hi Matt, Sorry here are the CIF Files I was talking about. Kind regards Donato |
@Senjou123 it took me a while to correctly understand your issue, but I have found it now! Unfortunately, we currently have two pieces of code in Larch which are able to generate a FEFF input from CIF, all wrapping Pymatgen, but in a slightly different way. The first version was implemented by @newville, the second by @Ameyanagi ( To quickly fix your problem, simply use the first version by @newville, as shown in the screenshot here: |
@Senjou123 no feedback from your side for months. I close the issue then. |
Hello, I am trying to generate a FEFF file from a CIF file, ICSD database code 64918, which is for metallic Pd. I tried with both Larix 0.9.78 and 0.9.8 and in both cases the following error appears :
Elements: ['Pd']
Sites: [0. 0. 0.] Pd0+
Traceback (most recent calls last):
File "C:\Users\nrw23216\AppData\Local\xraylarch\Lib\site-packages\larch\wxlib\structure2feff_browser.py", line 415, in onImportStructure
sites = ['%d' % (i+1) for i in range(len(sites))]
^^^^^^^^^^
TypeError: object of type 'PeriodicSite' has no len()
Is there a way to fix this problem?
Kind regards
Donato Decarolis
The text was updated successfully, but these errors were encountered: