def run_demo(): if ARGVS.demo == 1: ARGVS.fi = AppUtils.getASPENFile(olxpath, 'SAMPLE30.OLR') ARGVS.op = [1, 2, 3, 4, 5] run() else: AppUtils.demo_notFound(PY_FILE, ARGVS.demo, [1])
def run_demo(): if ARGVS.demo == 1: ARGVS.fi = ARGVS.olxpath + '\\SAMPLE30.OLR' ARGVS.pk = "[BUS] 6 'NEVADA' 132 kV" # choice = AppUtils.ask_run_demo(PY_FILE, 0, ARGVS.fi, "Selected BUS: " + str(ARGVS.pk)) if choice == "yes": return run() else: AppUtils.demo_notFound(PY_FILE, ARGVS.demo, [1])
def run_demo(): if ARGVS.demo==1: ARGVS.fi = AppUtils.getASPENFile(PATH_FILE,'SAMPLE30.OLR') ARGVS.fo = AppUtils.get_file_out(fo='' , fi=ARGVS.fi , subf='' , ad='_'+os.path.splitext(PY_FILE)[0]+'_demo' , ext='.csv') ARGVS.pk = ["[BUS] 6 'NEVADA' 132 kV", "[BUS] 14 'MONTANA' 33 kV"] # choice = AppUtils.ask_run_demo(PY_FILE,ARGVS.ut,ARGVS.fi,"Selected Bus: " + str(ARGVS.pk)) if choice=="yes": return run() else: AppUtils.demo_notFound(PY_FILE,ARGVS.demo,[1])
def run_demo(): if ARGVS.demo == 1: ARGVS.fi = AppUtils.getASPENFile(PATH_FILE, 'SAMPLE30.OLR') ARGVS.fo = AppUtils.get_file_out( fo='', fi=ARGVS.fi, subf='', ad='_' + os.path.splitext(PY_FILE)[0] + '_demo', ext='.OLR') # choice = AppUtils.ask_run_demo(PY_FILE, ARGVS.ut, ARGVS.fi, '') if choice == "yes": return run() else: AppUtils.demo_notFound(PY_FILE, ARGVS.demo, [1])
def run_demo(): if ARGVS.demo == 1: ARGVS.fi = AppUtils.getASPENFile(PATH_FILE, 'SAMPLE30.OLR') ARGVS.fo = AppUtils.get_file_out( fo='', fi=ARGVS.fi, subf='', ad='_' + os.path.splitext(PY_FILE)[0] + '_demo', ext='.csv') ARGVS.ft = os.path.join(PATH_FILE, 'InputTemplate2018.xlsx') # choice = AppUtils.ask_run_demo(PY_FILE, ARGVS.ut, ARGVS.fi, "Input template file: " + ARGVS.ft) # if choice == "yes": return run() else: AppUtils.demo_notFound(PY_FILE, ARGVS.demo, [1])
def run_demo(): if ARGVS.demo == 1: ARGVS.fi = AppUtils.getASPENFile(PATH_FILE, 'SAMPLE30.OLR') ARGVS.pk = ["[RELAYGROUP] 2 'CLAYTOR' 132 kV-6 'NEVADA' 132 kV 1 L"] ARGVS.fo = AppUtils.get_file_out( fo='', fi=ARGVS.fi, subf='', ad='_' + os.path.splitext(PY_FILE)[0] + '_demo', ext='.txt') # choice = AppUtils.ask_run_demo( PY_FILE, ARGVS.ut, ARGVS.fi, "Selected Relay Group: " + str(ARGVS.pk)) if choice == "yes": return run() else: AppUtils.demo_notFound(PY_FILE, ARGVS.demo, [1]) return 0
def run_demo(): if ARGVS.demo == 1: ARGVS.fi = AppUtils.getASPENFile('', 'SAMPLE30.OLR') ARGVS.fo = AppUtils.get_file_out( fo='', fi=ARGVS.fi, subf='', ad='_' + os.path.splitext(PY_FILE)[0] + '_demo', ext='.OLR') ARGVS.pk = [ "[XFORMER3] 6 'NEVADA' 132 kV-10 'NEVADA' 33 kV-'DOT BUS' 13.8 kV 1" ] ARGVS.ti = 1 ARGVS.ar = [] ARGVS.zo = [] # choice = AppUtils.ask_run_demo(PY_FILE, ARGVS.ut, ARGVS.fi, "Selected Object: " + str(ARGVS.pk)) if choice == "yes": return run() else: AppUtils.demo_notFound(PY_FILE, ARGVS.demo, [1])