Skip to content

Commit

Permalink
force control and print configuration for running feff
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed Jan 10, 2025
1 parent 0535b27 commit 79d39ab
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions larch/wxlib/cif_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,17 @@ def onGetFeff(self, event=None):
fefftext = cif2feffinp(cif.ciftext, catom, edge=edge, cluster_size=csize,
absorber_site=site_index, version8=version8,
with_h=with_h, extra_titles=etitles)
# hack for larixite 2024.10.0,
# but also, here we really want to force the print and control flags
flines = fefftext.split('\n')
for i, l in enumerate(flines):
x = l.strip()
if x.startswith('PRINT'):
flines[i] = 'PRINT 1 0 0 0 0 3'
elif x.startswith('CONTROL'):
flines[i] = 'CONTROL 1 1 1 1 1 1'

fefftext = '\n'.join(flines)

self.wids['feff_runfolder'].SetValue(folder)
self.wids['feff_text'].SetValue(fefftext)
Expand Down

0 comments on commit 79d39ab

Please sign in to comment.