Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "C:UsersRoszkowskiMDesktopwin4.py", line 133, in <module>
- 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],[])
- File ".psspy.py", line 25578, in two_winding_chng_4
- TypeError: an integer is required
- ValueError: invalid literal for int() with base 10: 'T1'
- for row in data:
- data_location, year_link, from_, to, min_value,max_value,name2,tla_2,digit = row[5:14]
- output = 'From Bus #: {}tTo Bus #: {}tVMAX: {} putVMIN: {} put'
- if year_link == year and data_location == location and tla_2==location:
- from_=int(from_)
- to=int(to)
- min_value=float(min_value)
- max_value=float(max_value)
- digit=int(digit)
- print(output.format(from_, to, max_value, min_value))
- _i=psspy.getdefaultint()
- _f=psspy.getdefaultreal()
- 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