Changeset 1399 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Jun 30, 2014 10:40:05 AM (8 years ago)
Author:
vondreele
Message:

allow D (&T) for hydrogen atom types
allow ge* for image extensions (as found at APS 1ID!)
switch e11 & e22 definitions to match coordinate system (x horizontal, y vertical)
add subtraction of dark image for image display & strain fitting
skip images with no strain entries in fitallstrsta

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r1397 r1399  
    28792879        pass
    28802880    size,imagefile = G2frame.PatternTree.GetItemPyData(G2frame.Image)
     2881    dark = Data['dark image']
     2882    if dark[0]:
     2883        darkfile = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,
     2884            G2frame.root,dark[0]))[1]
    28812885    if imagefile != G2frame.oldImagefile:
    28822886        imagefile = G2IO.CheckImageFile(G2frame,imagefile)
     
    28862890        G2frame.PatternTree.SetItemPyData(G2frame.Image,[size,imagefile])
    28872891        G2frame.ImageZ = G2IO.GetImageData(G2frame,imagefile,imageOnly=True)
     2892        if dark[0]:
     2893            darkImg = G2IO.GetImageData(G2frame,darkfile,imageOnly=True)
     2894            G2frame.ImageZ += dark[1]*darkImg
    28882895        G2frame.oldImagefile = imagefile
    28892896
Note: See TracChangeset for help on using the changeset viewer.