Ask Your Question
0

File .out does not have channel outputs (dyntools)

asked 2019-06-20 04:58:33 -0500

toderesa97 gravatar image

I'm working with this function to target buses and use the BASEKV voltage, as specified on the documentation.

def create_subsystem(self):
    subsys1_ierr = psspy.bsys(2, 1, [50, 210])
    ierr, buses = psspy.abuscount(2, 2)
    return buses

and then,

def generate_events_in(self, file):
    chnfobj = dyntools.CHNF("test.out")
    content = chnfobj.get_data()
    all_events = []
    # ...
    # ...

and everything works perfectly and as expected. The problem comes when changing the values of the array. If I were to change it from [50, 210] to [90, 210] dyntools will raise the following exception:

> File
> "C:\Users\TDRS\PycharmProjects\osmo\simulation\Platform.py",
> line 81, in generate_csv_in
>     chnfobj = dyntools.CHNF("test.out")   File
> ".\dyntools.py", line 1023, in
> __init__   File ".\dyntools.py", line 351, in _outextract_data   File
> ".\dyntools.py", line 307, in
> _outextract_id Exception: ERROR ... File test.out doesn't have channel
> outputs.
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-06-20 05:04:15 -0500

toderesa97 gravatar image

Well turns out, there are no buses that apply to such that range of values. To see that, open your .sav on PSSE and check out the BASEKV column. You will notice that, indeed, no buses fall into such range whereas applying the other, buses are found.

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: 2019-06-20 04:58:33 -0500

Seen: 29 times

Last updated: Jun 20