[Error in the code] dispatchable loads printing

22 views
Skip to first unread message

Miguel Heleno

unread,
Apr 20, 2016, 2:59:29 PM4/20/16
to pypower
Hi, 

I'm reporting an error in the code, after reviewing it:

script: printpf.py  ("dispatchable loads constraints" section)

problem: In dispatchable loads, arrays are not being assigned to "tuple" in printing function

example:
line 610: fd.write('%10.2f%10.2f%10.2f' % gen[i, [PMIN, PG, PMAX]])
should be: fd.write('%10.2f%10.2f%10.2f' % tuple(gen[i, [PMIN, PG, PMAX]]))

otherwise one gets an error in printing this information.

This is just an example. There are similar errors in this script...
  

Thanks for your good job in doing this wonderful API.


Miguel 


Reply all
Reply to author
Forward
0 new messages