Skip to content

Commit 62ba9f5

Browse files
committed
minor bug fixes
1 parent c2e165c commit 62ba9f5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

GSASII/GSASIIctrlGUI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2915,7 +2915,7 @@ def __init__(self,parent,title,prompt,value,limits=[0.,1.],fmt='%.5g'):
29152915
try:
29162916
w = int(a)
29172917
except:
2918-
w = 3+d
2918+
w = 5+d
29192919
self.OKbtn = wx.Button(self,wx.ID_OK)
29202920
CancelBtn = wx.Button(self,wx.ID_CANCEL)
29212921
valItem = ValidatedTxtCtrl(self,self.buffer,0,nDig=(w,d,f),

GSASII/SUBGROUPS.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,8 @@ def createStdSetting(cifFile,rd):
829829
if not os.path.exists(cifFile):
830830
print(f'createStdSetting error: file {cifFile} not found')
831831
return False
832-
files = {'cifile': open(cifFile,'rb')}
832+
fil = open(cifFile,'rb')
833+
files = {'cifile': fil}
833834
values = {'strtidy':''}
834835
print(f'''Submitting structure to Bilbao "CIF to Standard Setting" (strtidy)
835836
web service. Please cite:
@@ -859,6 +860,7 @@ def createStdSetting(cifFile,rd):
859860
rd.Phase['Atoms'].append(atomlist)
860861
if i == int(natom)-1: break
861862
del rd.SymOps['xyz'] # as-read sym ops now obsolete
863+
fil.close()
862864

863865
#if __name__ == '__main__':
864866
# Note that self-tests have been moved to file ``tests/run_bilbao.py``.

0 commit comments

Comments
 (0)