#NEWLINE# def get_scans( self , scans = None , motinfo = True , **kws ) : #NEWLINE# #INDENT# " get a list of scans\n\n        Parameters\n        ----------\n        scans : string or list of scans to load [None]; the format of the\n                string is intended to be parsed by '_str2rng()'\n        motinfo : boolean [True] returns also motors and scaninfo\n                  dictionaries (see self.get_scan())\n\n        Returns\n        -------\n        xdats, zdats : list of arrays\n        if motinfo: return mdats, idats dictionaries also\n        " #NEWLINE# cntx = kws . get ( 'cntx' , self . cntx ) #NEWLINE# csig = kws . get ( 'csig' , self . csig ) #NEWLINE# cmon = kws . get ( 'cmon' , self . cmon ) #NEWLINE# csec = kws . get ( 'csec' , self . csec ) #NEWLINE# norm = kws . get ( 'norm' , self . norm ) #NEWLINE# nscans = _checkScans ( scans ) #NEWLINE# _ct = 0 #NEWLINE# xdats = [ ] #NEWLINE# zdats = [ ] #NEWLINE# mdats = [ ] #NEWLINE# idats = [ ] #NEWLINE# for scan in nscans : #NEWLINE# #INDENT# ( _x , _z , _m , _i ) = self . get_scan ( scan = scan , cntx = cntx , cnty = None , csig = csig , cmon = cmon , csec = csec , scnt = None , norm = norm ) #NEWLINE# xdats . append ( _x ) #NEWLINE# zdats . append ( _z ) #NEWLINE# if motinfo : #NEWLINE# #INDENT# mdats . append ( _m ) #NEWLINE# idats . append ( csec ) #NEWLINE# #UNINDENT# print ( 'Loading scan {0}...' . format ( scan ) ) #NEWLINE# _ct += 1 #NEWLINE# #UNINDENT# if motinfo : #NEWLINE# #INDENT# return ( xdats , zdats , mdats , idats ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( xdats , zdats )