lib/redred.py
def initParameters(self):
        """ Create a a dictionary of all parameters and a nameID for the scan"""

        self.parameters = {'Pump Power': [self.pumpPw,'mW'],
                           'Probe Power': [self.probePw,'mW'],
                           'Destruction Power': [self.destrPw,'mW'],
                           'Pump Spot': [self.pumpSp,'mum'],
                           'Pump polarization': [self.pumpPol,'deg'],
                           'Probe polarization': [self.probePol,'deg'],
                           'Sample Orientation': [self.sampleOrient,'deg'],
                           'Pump-Distr time': [self.PDtime,'ps'],
                           'Probe Spot': [self.probeSp,'mum'],
                           'Temperature': [self.temperature,'K'],
                           'R0': [self.R0,'']
                           }
        # generate scanID
        if self.material:
            self.scanID.append(self.material)
        else:
            self.scanID.append('UnknMat')
        if self.pumpPw != 0:
            self.scanID.append('Pump' + str(self.pumpPw) + 'mW')
        if self.destrPw != 0:
            self.scanID.append('Destr' + str(self.destrPw) + 'mW')
        if self.temperature != 0:
            self.scanID.append('Temp' + str(self.temperature) + 'K')
        if self.date:
            self.scanID.append(self.date)
        self.filename = ''
        self.filename = ' '.join(self.scanID)
        self.filename = self.filename.replace(':','.')
 Create a a dictionary of all parameters and a nameID for the scan
Create a a dictionary of all parameters and a nameID for the scan
Create a a dictionary of all parameters and a nameID for the scan
def initParameters(self):
        self.parameters = {'Pump Power': [self.pumpPw,'mW'],
                           'Probe Power': [self.probePw,'mW'],
                           'Destruction Power': [self.destrPw,'mW'],
                           'Pump Spot': [self.pumpSp,'mum'],
                           'Pump polarization': [self.pumpPol,'deg'],
                           'Probe polarization': [self.probePol,'deg'],
                           'Sample Orientation': [self.sampleOrient,'deg'],
                           'Pump-Distr time': [self.PDtime,'ps'],
                           'Probe Spot': [self.probeSp,'mum'],
                           'Temperature': [self.temperature,'K'],
                           'R0': [self.R0,'']
                           }
        if self.material:
            self.scanID.append(self.material)
        else:
            self.scanID.append('UnknMat')
        if self.pumpPw != 0:
            self.scanID.append('Pump' + str(self.pumpPw) + 'mW')
        if self.destrPw != 0:
            self.scanID.append('Destr' + str(self.destrPw) + 'mW')
        if self.temperature != 0:
            self.scanID.append('Temp' + str(self.temperature) + 'K')
        if self.date:
            self.scanID.append(self.date)
        self.filename = ''
        self.filename = ' '.join(self.scanID)
        self.filename = self.filename.replace(':','.')
def initParameters ( self ) : self . parameters = { 'Pump Power' : [ self . pumpPw , 'mW' ] , 'Probe Power' : [ self . probePw , 'mW' ] , 'Destruction Power' : [ self . destrPw , 'mW' ] , 'Pump Spot' : [ self . pumpSp , 'mum' ] , 'Pump polarization' : [ self . pumpPol , 'deg' ] , 'Probe polarization' : [ self . probePol , 'deg' ] , 'Sample Orientation' : [ self . sampleOrient , 'deg' ] , 'Pump-Distr time' : [ self . PDtime , 'ps' ] , 'Probe Spot' : [ self . probeSp , 'mum' ] , 'Temperature' : [ self . temperature , 'K' ] , 'R0' : [ self . R0 , '' ] } if self . material : self . scanID . append ( self . material ) else : self . scanID . append ( 'UnknMat' ) if self . pumpPw != 0 : self . scanID . append ( 'Pump' + str ( self . pumpPw ) + 'mW' ) if self . destrPw != 0 : self . scanID . append ( 'Destr' + str ( self . destrPw ) + 'mW' ) if self . temperature != 0 : self . scanID . append ( 'Temp' + str ( self . temperature ) + 'K' ) if self . date : self . scanID . append ( self . date ) self . filename = '' self . filename = ' ' . join ( self . scanID ) self . filename = self . filename . replace ( ':' , '.' )
Create a a dictionary of all parameters and a nameID for the scan
Create a a dictionary of all parameters and a nameID for the scan
""" Create a a dictionary of all parameters and a nameID for the scan""" # generate scanID
self