#NEWLINE# def spec_getscan2group( fname , scan = None , cntx = None , csig = None , cmon = None , csec = None , scnt = None , norm = None , _larch = None ) : #NEWLINE# #INDENT# ' *** simple mapping of SpecfileData.get_scan() to Larch group *** ' #NEWLINE# if ( _larch is None ) : #NEWLINE# #INDENT# raise Warning ( 'larch broken?' ) #NEWLINE# #UNINDENT# s = SpecfileData ( fname ) #NEWLINE# group = _larch . symtable . create_group ( ) #NEWLINE# group . __name__ = ( 'SPEC data file %s' % fname ) #NEWLINE# ( x , y , motors , infos ) = s . get_scan ( scan = scan , cntx = cntx , csig = csig , cmon = cmon , csec = csec , scnt = scnt , norm = norm ) #NEWLINE# setattr ( group , 'x' , x ) #NEWLINE# setattr ( group , 'y' , y ) #NEWLINE# setattr ( group , 'motors' , motors ) #NEWLINE# setattr ( group , 'infos' , infos ) #NEWLINE# return group