diff --git a/ess/lib_tw.py b/ess/lib_tw.py index 681ea38c7718dab89f9684a6ae07f113ea452758..14548c55c9ac5751e1ae3aef089caa92cf390644 100644 --- a/ess/lib_tw.py +++ b/ess/lib_tw.py @@ -79,10 +79,13 @@ class LATTICE: para=lin.split()[1:] # Map to a class if typ == 'FIELD_MAP' : lst.append( FIELD_MAP(name,typ,para,dic_fmap)) - elif typ == 'FIELD_MAP_PATH' : _update_field_map_dict(dic_fmap,para[0]) elif typ in dic_cls.keys() : lst.append(dic_cls[typ](name,typ,para) ) elif 'DIAG' in typ : lst.append( DIAG(name,typ,para) ) else : lst.append( COMM(name,typ,para) ) + + # in case of field map path, update dictionary with new path + if typ == 'FIELD_MAP_PATH' : _update_field_map_dict(dic_fmap,para[0]) + # Break the loop if typ=='END': break