Changeset 2777 for trunk/GSASIIIO.py


Ignore:
Timestamp:
Apr 12, 2017 3:12:45 PM (5 years ago)
Author:
vondreele
Message:

implement import of getPDFx G(R) files NB: these have no matching PWDR entries
replace all scipy.fft with numpy.fft
add a plot SLD button for reflectometry
for PDF Peaks - Atom elements from periodic table - Bond No. still not working so doesn't really matter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIIO.py

    r2754 r2777  
    17511751######################################################################
    17521752class ImportReflectometryData(ImportBaseclass):
    1753     '''Defines a base class for the reading of files with small angle data.
     1753    '''Defines a base class for the reading of files with reflectometry data.
    17541754    See :ref:`Writing a Import Routine<Import_Routines>`
    17551755    for an explanation on how to use this class.
     
    17821782        self.numbanks = 1
    17831783        self.instdict = {} # place items here that will be transferred to the instrument parameters
     1784
     1785######################################################################
     1786class ImportPDFData(ImportBaseclass):
     1787    '''Defines a base class for the reading of files with PDF G(R) data.
     1788    See :ref:`Writing a Import Routine<Import_Routines>`
     1789    for an explanation on how to use this class.
     1790    '''
     1791    def __init__(self,formatName,longFormatName=None,extensionlist=[],
     1792        strictExtension=False,):
     1793           
     1794        ImportBaseclass.__init__(self,formatName,longFormatName,extensionlist,
     1795            strictExtension)
     1796        self.ReInitialize()
     1797       
     1798    def ReInitialize(self):
     1799        'Reinitialize the Reader to initial settings'
     1800        ImportBaseclass.ReInitialize(self)
     1801        self.pdfentry = ['',None,None] #  (filename,Pos,Bank)
     1802        self.pdfdata = [] # PDF G(R) dataset
     1803        '''A pdf g(r) data set is a list with items [x,y]:
     1804                np.array(x), # r-axis values
     1805                np.array(y), # pdf g(r)
     1806        '''                           
     1807        self.comments = []
     1808        self.idstring = ''
     1809        self.numbanks = 1
    17841810
    17851811######################################################################
Note: See TracChangeset for help on using the changeset viewer.