# File .out does not have channel outputs (dyntools)

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 close merge delete

Sort by » oldest newest most voted

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.

more

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