Ask Your Question
0

I cannot open my saved case file

asked 2014-05-06 11:01:05 -0600

Luis gravatar image

I am using PSSEUniversity 33.4.0 and I write this code:

import os, sys

PSSEPATH = r'C:\Program Files (x86)\PTI\PSSEUniversity33\PSSBIN' sys.path.append(PSSEPATH) os.environ['PATH'] += ';' + PSSE_PATH

import psspy

REDEPATH = r'C:\Users\Luis2\Documents\UNL\Semestre3\Tese' sys.path.append(REDEPATH) os.environ['PATH'] += ';' + REDE_PATH

CASE = r'rede.sav' psspy.psseinit() psspy.case(CASE)

and I allways get the "File not found. rede.sav (OpnApplFil/OPNPTI)" message. But the file is there, in the "C:\Users\Luis2\Documents\UNL\Semestre3\Tese" and this path is added to the sys. What am I doing wrong?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-05-28 15:39:06 -0600

NOC gravatar image

Hi everybody,

Initially, I would initialize the case with the instruction: psspy.psseinit("number of the bus") For example, psspy.psseinit(100000)

Another hand, I would substitute CASE=r'rede.sav' with CASE=str(REDEPATH)+"\"+"rede.sav" and after that I would put psspy.case(CASE).

I hope your problem be solved.

edit flag offensive delete link more
0

answered 2014-05-07 07:49:19 -0600

jconto gravatar image

Open the case from the GUI to check that the case is OK. Also, from "This is my first time conecting python with psseuniversity", add a bus number to pssinit as

psspy.pssinit(2000)

and enter full path of the casename in psspy.case(fullpathofcase)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2014-05-06 11:01:05 -0600

Seen: 1,539 times

Last updated: May 28 '14