SOLPSxport.py
def loadProfDBPedFit(self, profiles_file = None, shotnum = None,
                         timeid = None, runid = None, verbose = True):
        """
        Either (1) provide the location of the saved profiles file
                   (should probably have extension *.pkl)
            or (2) give info to retrieve it from MDSplus
            **Second option requires access to atlas.gat.com
        """
        
        if profiles_file is None:
            if verbose: print('Getting profile fit data from MDSplus server on atlas.gat.com')
            
            self.timeid = timeid
            self.data['pedData']['fitVals'] = sut.getProfDBPedFit(shotnum, timeid, runid)
            
        else:
            import pickle
            
            if verbose: print('Reading profile fit data from saved file: ' + profiles_file)
            
            with open(profiles_file, 'rb') as f:
                self.data['pedData']['fitVals'] = pickle.load(f)

        Either (1) provide the location of the saved profiles file
                   (should probably have extension *.pkl)
            or (2) give info to retrieve it from MDSplus
            **Second option requires access to atlas.gat.com
        
Either (1) provide the location of the saved profiles file
(should probably have extension *.pkl)
or (2) give info to retrieve it from MDSplus
Second option requires access to atlas.gat.com
Either ( 1 ) provide the location of the saved profiles file ( should probably have extension * . pkl ) or ( 2 ) give info to retrieve it from MDSplus Second option requires access to atlas . gat . com
def loadProfDBPedFit(self, profiles_file = None, shotnum = None,
                         timeid = None, runid = None, verbose = True):
        if profiles_file is None:
            if verbose: print('Getting profile fit data from MDSplus server on atlas.gat.com')
            self.timeid = timeid
            self.data['pedData']['fitVals'] = sut.getProfDBPedFit(shotnum, timeid, runid)
        else:
            import pickle
            if verbose: print('Reading profile fit data from saved file: ' + profiles_file)
            with open(profiles_file, 'rb') as f:
                self.data['pedData']['fitVals'] = pickle.load(f)
def loadProfDBPedFit ( self , profiles_file = None , shotnum = None , timeid = None , runid = None , verbose = True ) : if profiles_file is None : if verbose : print ( 'Getting profile fit data from MDSplus server on atlas.gat.com' ) self . timeid = timeid self . data [ 'pedData' ] [ 'fitVals' ] = sut . getProfDBPedFit ( shotnum , timeid , runid ) else : import pickle if verbose : print ( 'Reading profile fit data from saved file: ' + profiles_file ) with open ( profiles_file , 'rb' ) as f : self . data [ 'pedData' ] [ 'fitVals' ] = pickle . load ( f )
Either (1) provide the location of the saved profiles file
(should probably have extension *.pkl)
or (2) give info to retrieve it from MDSplus
Second option requires access to atlas.gat.com
Either ( 1 ) provide the location of the saved profiles file ( should probably have extension * . pkl ) or ( 2 ) give info to retrieve it from MDSplus Second option requires access to atlas . gat . com
"""
        Either (1) provide the location of the saved profiles file
                   (should probably have extension *.pkl)
            or (2) give info to retrieve it from MDSplus
            **Second option requires access to atlas.gat.com
        """
self
profiles_file
shotnum
timeid
runid
verbose