Changeset 2290 for trunk/GSASII.py


Ignore:
Timestamp:
May 25, 2016 3:39:41 PM (6 years ago)
Author:
vondreele
Message:

complex problem - fix summing of GE images; needed new item in Image Controls to save which reader was used. Change to OnImportGeneric? to keep self.formatName; GetImageData? put it in the call & check it with the available readers & GetImageZ to get it out of the Image Controls & apply it in GetImageData?.
Add a test on file size for GE files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASII.py

    r2275 r2290  
    525525                    if flag: # this read succeeded
    526526                        rd.readfilename = filename
    527                         if load2Tree:
     527                        if load2Tree:   #images only
    528528                            if rd.repeatcount == 1 and not rd.repeat: # skip image number if only one in set
    529529                                rd.Data['ImageTag'] = None
    530530                            else:
    531531                                rd.Data['ImageTag'] = rd.repeatcount
     532                            rd.Data['formatName'] = rd.formatName
    532533                            G2IO.LoadImage2Tree(rd.readfilename,self,rd.Comments,rd.Data,rd.Npix,rd.Image)
    533534                            rd_list.append(True) # save a stub the result before it is written over
Note: See TracChangeset for help on using the changeset viewer.