Changeset 1386 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Jun 17, 2014 2:45:48 PM (8 years ago)
Author:
vondreele
Message:

fix stress strain data references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r1383 r1386  
    25182518    '''
    25192519    G2frame.dataFrame.GetStatusBar().SetStatusText('Add strain ring active - LB pick d-zero value',0)
    2520     StrSta = G2frame.PatternTree.GetItemPyData(
    2521         G2gd.GetPatternTreeItemId(G2frame,G2frame.Image, 'Stress/Strain'))
     2520    G2frame.PickId = G2gd.GetPatternTreeItemId(G2frame,G2frame.Image, 'Stress/Strain')
     2521    data = G2frame.PatternTree.GetItemPyData(G2frame.PickId)
     2522    return data
    25222523
    25232524def PlotImage(G2frame,newPlot=False,event=None,newImage=True):
     
    25282529    import numpy.ma as ma
    25292530    Dsp = lambda tth,wave: wave/(2.*npsind(tth/2.))
    2530     global Data,Masks
     2531    global Data,Masks,StrSta
    25312532    colors=['b','g','r','c','m','k']
    25322533    Data = G2frame.PatternTree.GetItemPyData(
     
    25982599            if event.key in ['a',]:
    25992600                G2frame.StrainKey = event.key
    2600                 OnStartNewDzero(G2frame)
     2601                StrSta = OnStartNewDzero(G2frame)
    26012602                PlotImage(G2frame,newPlot=False)
    26022603               
Note: See TracChangeset for help on using the changeset viewer.