Ask Your Question
0

Branch length using python

asked 2021-10-28 23:30:41 -0500

murshed00123 gravatar image

updated 2021-10-28 23:40:26 -0500

I have written a code for the finding branch length as

for m in range(len(frombus)): 
     err10, rval = psspy.brndat(frombus[m],tobus[m],Branch_id[m],'LENGTH') 
     Busval=frombus[m]#if str(rval)>0:
     BUSval1.append(Busval)
     linlen.append(rval)
     if rval>0.0:
            frombus1.append(frombus[m])
            tobus1.append(tobus[m])
            Branch_id1.append(Branch_id[m])
            linlen1.append(rval)e here

I work for psse 33.4 but not working in PSSE 34.4 . How can I solve the issue. After debugging I found rval returning value for PSSS 33.4 but in case of PSSE 34.4 returning no value

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2021-11-01 12:10:25 -0500

jconto gravatar image

The code works well in v.33 & v.34. I tested it on the savnw.sav case using v.33.12 & v.34.9 The API brndat is a basic one, with no updates between versions.

edit flag offensive delete link more
0

answered 2021-10-29 04:43:00 -0500

perolofl gravatar image

Check the error code from brndat (err10).

edit flag offensive delete link more

Comments

I have checked err10 code there is no problem with err10. The same code is working for 33.4 but for 34.4 variable rval returning 0.0 value...

murshed00123 gravatar imagemurshed00123 ( 2021-10-29 08:39:26 -0500 )edit

Seems like a bug. Have you asked PTI?

perolofl gravatar imageperolofl ( 2021-11-01 01:58:25 -0500 )edit

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: 2021-10-28 23:30:41 -0500

Seen: 337 times

Last updated: Nov 01 '21