def pars_of_set(wdir, setname):
 list = []
 for file in os.listdir(wdir):
  m = FULLVOLPAR2_RE.search(file)
  if (m and (m.group(1) == setname) and m.group(2)):
   list.append(file)
 return list

def pars_of_set ( wdir , setname ) : list = [ ] for file in os . listdir ( wdir ) : m = FULLVOLPAR2_RE . search ( file ) if ( m and ( m . group ( 1 ) == setname ) and m . group ( 2 ) ) : list . append ( file ) return list
return list of par2 files matching the set .