Changeset 4665


Ignore:
Timestamp:
Nov 29, 2020 9:43:54 PM (3 years ago)
Author:
toby
Message:

fix Circle() picking; remove unneeded diagnostic from LSQ error

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4661 r4665  
    10601060                if A > 0.0:
    10611061                    Plot.add_artist(Circle(xy,radius=A,ec='g',fc='w',
    1062                                 #picker=True,pickradius=1.,
    1063                                                gid=hid))
     1062                                picker=True,gid=hid))
    10641063                else:
    10651064                    Plot.add_artist(Circle(xy,radius=-A,ec='r',fc='w',
    1066                                 #picker=True,pickradius=1.,
    1067                                                gid=hid))
     1065                                picker=True,gid=hid))
    10681066            else:
    10691067                if A > 0.0 and A > B:
     
    10711069                if B:
    10721070                    Plot.add_artist(Circle(xy,radius=B,ec='b',fc='w',
    1073                                 #picker=True,pickradius=1.,
    1074                                                gid=hid))
     1071                                picker=True,gid=hid))
    10751072                    if A < B:
    10761073                        Plot.add_artist(Circle(xy,radius=A,ec='g',fc='w'))
     
    70657062                spot = [event.xdata,event.ydata,G2frame.spotSize]
    70667063                Masks['Points'].append(spot)
    7067                 artist = Circle(spot[:2],radius=spot[2]/2,fc='none',ec='r')
    7068 #                                picker=True,pickradius=3)
     7064                artist = Circle(spot[:2],radius=spot[2]/2,fc='none',ec='r',
     7065                                picker=True)
     7066                GSASIIpath.IPyBreak()
    70697067                Page.figure.gca().add_artist(artist)
    70707068                artist.itemNumber = len(Masks['Points'])-1
     
    74987496                    spot = [Xpos,Ypos,sig]
    74997497                    Masks['Points'].append(spot)
    7500                     artist = Circle((Xpos,Ypos),radius=spot[2]/2,fc='none',ec='r')
    7501 #                                picker=True,pickradius=3)
     7498                    artist = Circle((Xpos,Ypos),radius=spot[2]/2,fc='none',ec='r',
     7499                                        picker=True)
     7500                    GSASIIpath.IPyBreak()
    75027501                    Page.figure.gca().add_artist(artist)
    75037502                    artist.itemNumber = len(Masks['Points'])-1
     
    78577856            if len(spot):
    78587857                x,y,d = spot
    7859                 artist = Circle((x,y),radius=d/2,fc='none',ec='r')
    7860 #                                picker=True,pickradius=3)
     7858                artist = Circle((x,y),radius=d/2,fc='none',ec='r',
     7859                                picker=True)
    78617860                Plot.add_artist(artist)
    78627861                artist.itemNumber = i
  • trunk/GSASIIstrMath.py

    r4662 r4665  
    32323232        G,g = G2lat.A2Gmat(A)       #recip & real metric tensors
    32333233        if np.any(np.diag(G)<0.) or np.any(np.isnan(A)):
    3234             G2obj.HowDidIgetHere()
     3234            #G2obj.HowDidIgetHere()
    32353235            raise G2obj.G2Exception('Error in metric tensor refinement\nCheck for refinement of conflicting variables')
    32363236        GA,GB = G2lat.Gmat2AB(G)    #Orthogonalization matricies
Note: See TracChangeset for help on using the changeset viewer.