Changeset 3216 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Jan 7, 2018 9:06:19 PM (4 years ago)
Author:
toby
Message:

add data & parameter access in scripting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r3196 r3216  
    12641264    file without invoking any GUI objects.
    12651265    '''
     1266    # TODO: review exporters producing exceptions where .Writer can't be used where G2frame is None (see CIF)
     1267    # TODO: review conflicting uses of .Writer with mode (SeqRef) & elsewhere
     1268    # TODO: move this class to G2fil
    12661269    def __init__(self,G2frame,formatName,extension,longFormatName=None,):
    12671270        self.G2frame = G2frame
     
    17951798            self.sigDict[i] = sig
    17961799        #GSASIIpath.IPyBreak()
    1797                
     1800
     1801    def SetFromArray(self,hist,histname):
     1802        '''Load a histogram into the exporter in preparation for use of the .Writer
     1803        rather than the main tree. This is used in GSASIIscriptable when wx
     1804        is not present.
     1805        '''
     1806        self.Histograms[histname] =  {}
     1807        self.Histograms[histname]['Data'] = hist['data'][1]
     1808        self.Histograms[histname]['Instrument Parameters'] = hist['Instrument Parameters']
     1809        self.Histograms[histname]['Sample Parameters'] = hist['Sample Parameters']
     1810
    17981811    # Tools to pull information out of the data arrays
    17991812    def GetCell(self,phasenam):
Note: See TracChangeset for help on using the changeset viewer.