From 6b9a42fb99d52a3aa2b3d8ae6cc314ed2fc1c81d Mon Sep 17 00:00:00 2001 From: shrlnm Date: Wed, 19 Apr 2023 08:36:29 +0300 Subject: [PATCH] writing mtcexp.txt --- pyren3/acf.py | 9 +++++---- pyren3/mod_acf_proc.py | 6 +----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/pyren3/acf.py b/pyren3/acf.py index 90309c5..f962435 100755 --- a/pyren3/acf.py +++ b/pyren3/acf.py @@ -313,10 +313,11 @@ def main(): print("%2s : %s : " % (m['idf'],m['sref'])) if mod_globals.opt_exp: - for option in sorted(mtc): - res = acf_MTC_optionsExplorer( module_list, option, mtc ) - for l in res: - print( l ) + with open( '../MTCSAVE/'+VIN+'/mtcexp.txt', 'w' ) as f: + for option in sorted(mtc): + res = acf_MTC_optionsExplorer( module_list, option, mtc ) + for l in res: + f.write( l + '\n' ) if __name__ == '__main__': main() diff --git a/pyren3/mod_acf_proc.py b/pyren3/mod_acf_proc.py index ea78e1a..99d687a 100644 --- a/pyren3/mod_acf_proc.py +++ b/pyren3/mod_acf_proc.py @@ -262,12 +262,8 @@ def acf_MTC_optinInfluence( m, option, allmtc ): if option not in op.MTC: continue res = acf_MTC_compare(op.MTC, allmtc) if res: - tmpMTC = op.MTC.split() if op.MTC.startswith('SAUF'): continue - #if len(tmpMTC)==2 and tmpMTC[0]=='SAUF' and tmpMTC[1]!=option: continue - out = out + '%-100s;%-30s;%-10s;%s\n'%(cu.DI, op.MTC, op.VW, op.TEX) - #out = out + '%-100s;%-30s;%-10s;%s\n'%(cu.TE, op.MTC, op.VW, op.TEX) - #break + out = out + '%-70s;%-15s;%-15s;%s\n'%(cu.DI, op.VW, op.MTC, op.TEX) return out