#NEWLINE# @ ValidateLarchPlugin #NEWLINE# def gsescan_group( fname , _larch = None , bad = None , **kws ) : #NEWLINE# #INDENT# 'simple mapping of EscanData file to larch groups' #NEWLINE# escan = EscanData ( fname , bad = bad ) #NEWLINE# if ( escan . status is not None ) : #NEWLINE# #INDENT# raise ValueError ( 'Not a valid Escan Data file' ) #NEWLINE# #UNINDENT# group = _larch . symtable . create_group ( ) #NEWLINE# group . __name__ = ( 'GSE Escan Data file %s' % fname ) #NEWLINE# for ( key , val ) in escan . __dict__ . items ( ) : #NEWLINE# #INDENT# if ( not key . startswith ( '_' ) ) : #NEWLINE# #INDENT# setattr ( group , key , val ) #NEWLINE# #UNINDENT# #UNINDENT# group . array_labels = ( group . pos_desc + group . sums_names ) #NEWLINE# group . get_data = escan . get_data #NEWLINE# return group