Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "C:UsersRoszkowskiMDesktopwin4.py", line 133, in <module>
  3. psspy.two_winding_chng_4(from_,to,'%s'%digit,[_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i],[_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f, max_value, min_value,_f,_f,_f],[])
  4. File ".psspy.py", line 25578, in two_winding_chng_4
  5. TypeError: an integer is required
  6. ValueError: invalid literal for int() with base 10: 'T1'
  7.  
  8. for row in data:
  9. data_location, year_link, from_, to, min_value,max_value,name2,tla_2,digit = row[5:14]
  10. output = 'From Bus #: {}tTo Bus #: {}tVMAX: {} putVMIN: {} put'
  11. if year_link == year and data_location == location and tla_2==location:
  12. from_=int(from_)
  13. to=int(to)
  14. min_value=float(min_value)
  15. max_value=float(max_value)
  16. digit=int(digit)
  17. print(output.format(from_, to, max_value, min_value))
  18. _i=psspy.getdefaultint()
  19. _f=psspy.getdefaultreal()
  20. psspy.two_winding_chng_4(from_,to,'%s'%digit,[_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i,_i],[_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f,_f, max_value, min_value,_f,_f,_f],[])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement