First time here? We are a friendly community of Power Systems Engineers. Check out the FAQ!

Ask Your Question
0

How can you edit branch data from PSSE raw file using Python? [closed]

asked Sep 7 '16

KillSwitch gravatar image

I want to create a loop where in if my branch data's resistance = 0 then I put it in service ( InService =1). Can you please give me a suggestion on how to do it? Thanks :)

Closed for the following reason the question is answered, right answer was accepted by KillSwitch
close date 2017-03-03 16:30:11.081660

1 answer

Sort by » oldest newest most voted
0

answered Sep 12 '16

SqFKYo gravatar image

As I couldn't find a field with the status from the raw file, I'd ask you to reconsider and instead instead use Python to open the raw file (read-function), then change the statuses using e.g. abrnint/abrnchar/branchchng and finally save the file to raw using rawd2. Would this be acceptable?

link

Comments

???? Of course the line status is in the raw file, you find it immedietaly after the line shunts!

perolofl gravatar imageperolofl (Sep 19 '16)

Question Tools

1 follower

Stats

Asked: Sep 7 '16

Seen: 1,948 times

Last updated: Sep 12 '16