Changeset 3191 for trunk/GSASIIpwdGUI.py


Ignore:
Timestamp:
Dec 13, 2017 8:26:51 AM (4 years ago)
Author:
vondreele
Message:

fix integer divides in responding to unit cell changes on Unit Cells window
show StarFile? errors from cif importer
add missing nonstandard space group symbols for face centered orthorhombics
begin implementation of cif import magnetic phases into 2 phase result

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r3175 r3191  
    28152815        ObjId = cellList.index(Obj.GetId())
    28162816        valObj = valDict[Obj.GetId()]
    2817         if ObjId/2 < 3:
     2817        if ObjId//2 < 3:
    28182818            move = Obj.GetValue()*0.01
    28192819        else:
     
    28212821        Obj.SetValue(0)
    28222822        value = float(valObj.GetValue())+move 
    2823         SetCellValue(valObj,ObjId/2,value)
     2823        SetCellValue(valObj,ObjId//2,value)
    28242824        OnHklShow(event)
    28252825       
     
    28492849            value = max(1.0,float(Obj.GetValue()))
    28502850        except ValueError:
    2851             if ObjId/2 < 3:               #bad cell edge - reset
    2852                 value = controls[6+ObjId/2]
     2851            if ObjId//2 < 3:               #bad cell edge - reset
     2852                value = controls[6+ObjId//2]
    28532853            else:                       #bad angle
    28542854                value = 90.
Note: See TracChangeset for help on using the changeset viewer.