You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'''Show a summary with info from a search of supergroups in
3455
3458
:func:`OnSuperSearch` (in :func:`UpdatePhaseData`)
3456
3459
'''
3457
-
import SUBGROUPS
3458
3460
def _showWebPage(event):
3459
3461
import tempfile
3460
3462
f = event.GetEventObject().webFile
3461
3463
tmp = tempfile.NamedTemporaryFile(suffix='.html',
3462
3464
delete=False)
3463
-
open(tmp.name,'w').write(f.replace(
3465
+
with open(tmp.name,'w') as fp:
3466
+
fp.write(f.replace(
3464
3467
'<head>',
3465
3468
'<head><base href="https://www.cryst.ehu.es/">',
3466
3469
))
@@ -7952,7 +7955,7 @@ def Runfullrmc(event):
7952
7955
shutil.rmtree(rmcname)
7953
7956
else:
7954
7957
return
7955
-
G2G.G2MessageBox(G2frame,f'For use of fullrmc, please cite:\n\n'+
7958
+
G2G.G2MessageBox(G2frame,'For use of fullrmc, please cite:\n\n'+
7956
7959
G2G.GetCite('fullrmc')+
7957
7960
'\n\nNote: A more advanced version of fullrmc can be found at www.fullrmc.com',
7958
7961
'Please cite fullrmc')
@@ -8014,7 +8017,7 @@ def RunRMCProfile(event):
8014
8017
rmcexe = os.path.split(rmcfile)[0]
8015
8018
#print(rmcexe)
8016
8019
wx.MessageBox(
8017
-
f' For use of RMCProfile, please cite:\n\n'+
8020
+
' For use of RMCProfile, please cite:\n\n'+
8018
8021
G2G.GetCite("RMCProfile"),
8019
8022
caption='RMCProfile',style=wx.ICON_INFORMATION)
8020
8023
if os.path.isfile(pName+'.his6f'):
@@ -17004,6 +17007,7 @@ def checkPDFfit(G2frame):
17004
17007
# see if diffpy has been installed directly
17005
17008
try:
17006
17009
from diffpy.pdffit2 import PdfFit
17010
+
PdfFit
17007
17011
return True
17008
17012
except:
17009
17013
pass
@@ -17012,6 +17016,7 @@ def checkPDFfit(G2frame):
17012
17016
# Python in a separate environment
17013
17017
try: # have conda. Can we access it programmatically?
17014
17018
import conda.cli.python_api
17019
+
conda.cli.python_api
17015
17020
except:
17016
17021
G2G.G2MessageBox(G2frame,'You are running a directly installed Python. You will need to install PDFfit2 directly as well, preferably in a separate virtual environment.')
0 commit comments