Changeset 4290
- Timestamp:
- Feb 6, 2020 4:55:50 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIphsGUI.py
r4289 r4290 289 289 wx.Dialog.__init__(self,parent,wx.ID_ANY,'Setup polyhedron comparison', 290 290 pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER) 291 self.parent = parent 291 292 self.panel = wxscroll.ScrolledPanel(self) #just a dummy - gets destroyed in Draw! 292 293 self.OPhase = copy.deepcopy(phase) #will be a new phase! … … 314 315 def OnTatmOsel(event): 315 316 self.Tatoms[0] = tatmosel.GetStringSelection() 316 print(G2mth.FindAllNeighbors(self.OPhase,self.Oatoms[0],self.Tatoms[0])[0]) 317 generalData = self.OPhase['General'] 318 DisAglCtls = generalData['DisAglCtls'] 319 dlg = G2G.DisAglDialog(self.parent,DisAglCtls,generalData) 320 if dlg.ShowModal() == wx.ID_OK: 321 generalData['DisAglCtls'] = dlg.GetData() 322 dlg.Destroy() 323 print(G2mth.FindNeighbors(self.OPhase,self.Oatoms[0],self.Tatoms[0])[0]) 317 324 318 325 self.panel.Destroy() -
trunk/GSASIIplot.py
r4287 r4290 2864 2864 2865 2865 for KeyItem in extraKeys: 2866 Page.Choice = Page.Choice + (KeyItem[0] + ': '+KeyItem[2],)2866 Page.Choice = Page.Choice + [KeyItem[0] + ': '+KeyItem[2],] 2867 2867 magLineList = [] # null value indicates no magnification 2868 2868 Page.toolbar.updateActions = None # no update actions -
trunk/SUBGROUPS.py
r4289 r4290 22 22 import GSASIIpath 23 23 GSASIIpath.SetBinaryPath() 24 submagSite = 'http://www.cryst.ehu.es/cgi-bin/cryst/programs/subgrmag1_general_GSAS.pl '24 submagSite = 'http://www.cryst.ehu.es/cgi-bin/cryst/programs/subgrmag1_general_GSAS.pl?' 25 25 26 26 def GetNonStdSubgroups(SGData, kvec,star=False,landau=False,maximal=False): … … 84 84 postdict['knm%d%s'%(j,i)] = k 85 85 try: 86 r = requests. post(submagSite,postdict)86 r = requests.get(submagSite,params=postdict) 87 87 except: #ConnectionError? 88 88 page = '' … … 212 212 postdict['km%d%s'%(j,i)] = k 213 213 try: 214 r = requests. post(submagSite,postdict)214 r = requests.get(submagSite,params=postdict) 215 215 except: #ConnectionError? 216 216 page = '' … … 284 284 str(int(spgNum)),cellstr,str(int(tol))) 285 285 try: 286 r = requests. post(psSite,data=datastr)286 r = requests.get(psSite,params=datastr) 287 287 except: #ConnectionError? 288 288 page = '' -
trunk/kSUBGROUPSMAG.py
r4289 r4290 24 24 import GSASIIpath 25 25 GSASIIpath.SetBinaryPath() 26 submagSite = 'http://www.cryst.ehu.es/cgi-bin/cryst/programs/subgrmag1_ general.pl'26 submagSite = 'http://www.cryst.ehu.es/cgi-bin/cryst/programs/subgrmag1_k.pl' 27 27 28 28 class TableParser(HTML.HTMLParser): … … 141 141 postdict['km%d%s'%(j,i)] = k 142 142 try: 143 print(postdict) 144 r = requests.post(submagSite,postdict) 145 print(r) 143 r = requests.get(submagSite,params=postdict) 146 144 except: #ConnectionError? 147 145 page = '' … … 216 214 postdict['knm%d%s'%(j,i)] = k 217 215 try: 218 print(postdict) 219 r = requests.post(submagSite,postdict) 220 print(r) 216 r = requests.get(submagSite,params=postdict) 221 217 except: #ConnectionError? 222 218 page = '' … … 243 239 results,baseList = GetNonStdSubgroupsmag(SGData,('1/3','1/3','1/2',' ',' ',' ',' ',' ',' ',' ')) 244 240 if results: 245 for [spgp,mv,bns,gid,altList,supList] in results: 241 print(results) 242 for [spgp,mv,bns,gid,altList,supList] in results.text: 246 243 if gid in baseList: 247 244 print('Space group:',spgp, 'BNS:',bns) … … 250 247 results,baseList = GetNonStdSubgroupsmag(SGData,('1/3','1/3','1/2',' ',' ',' ',' ',' ',' ',' ')) 251 248 if results: 252 for [spgp,mv,gid,altList,supList] in results :249 for [spgp,mv,gid,altList,supList] in results.text: 253 250 if gid in baseList: 254 251 print('Space group:',spgp)
Note: See TracChangeset
for help on using the changeset viewer.