Changeset 4290 for trunk/SUBGROUPS.py


Ignore:
Timestamp:
Feb 6, 2020 4:55:50 AM (22 months ago)
Author:
vondreele
Message:

fix Bilbao-GSAS-II connection; use get instead of post in SUBGROUPS.py
fix bug in plotting: a tuple should be list
modify the Compare dialog - still not done yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SUBGROUPS.py

    r4289 r4290  
    2222import GSASIIpath
    2323GSASIIpath.SetBinaryPath()
    24 submagSite = 'http://www.cryst.ehu.es/cgi-bin/cryst/programs/subgrmag1_general_GSAS.pl'
     24submagSite = 'http://www.cryst.ehu.es/cgi-bin/cryst/programs/subgrmag1_general_GSAS.pl?'
    2525
    2626def GetNonStdSubgroups(SGData, kvec,star=False,landau=False,maximal=False):
     
    8484            postdict['knm%d%s'%(j,i)] = k
    8585    try:
    86         r = requests.post(submagSite,postdict)
     86        r = requests.get(submagSite,params=postdict)
    8787    except:     #ConnectionError?
    8888        page = ''
     
    212212            postdict['km%d%s'%(j,i)] = k
    213213    try:
    214         r = requests.post(submagSite,postdict)
     214        r = requests.get(submagSite,params=postdict)
    215215    except:     #ConnectionError?
    216216        page = ''
     
    284284        str(int(spgNum)),cellstr,str(int(tol)))
    285285    try:
    286         r = requests.post(psSite,data=datastr)
     286        r = requests.get(psSite,params=datastr)
    287287    except:     #ConnectionError?
    288288        page = ''
Note: See TracChangeset for help on using the changeset viewer.