Advertisement
mikofski

pvmismatch module simulator

Feb 10th, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.84 KB | None | 0 0
  1. $ python ModuleMismatchSimulator.py
  2. Module Size? (1=72c, 2=96c, 3=128c): 2
  3. Cell temperature (deg C)? 45
  4. Pmp0: 305.966028931
  5.  
  6. #Cells %Shade  Pmp   %ofPmp0
  7. ----------------------------
  8. Exception in Tkinter callback
  9. Traceback (most recent call last):
  10.   File "C:\Python27\lib\lib-tk\Tkinter.py", line 1537, in __call__
  11.     return self.func(*args)
  12.   File "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 402, in button_pre
  13. ss_event
  14.     FigureCanvasBase.button_press_event(self, x, y, num, dblclick=dblclick, guiEvent=event)
  15.   File "C:\Python27\lib\site-packages\matplotlib\backend_bases.py", line 1909, in button_press_event
  16.  
  17.     self.callbacks.process(s, mouseevent)
  18.   File "C:\Python27\lib\site-packages\matplotlib\cbook.py", line 549, in process
  19.     proxy(*args, **kwargs)
  20.   File "C:\Python27\lib\site-packages\matplotlib\cbook.py", line 416, in __call__
  21.     return mtd(*args, **kwargs)
  22.   File "C:\Python27\lib\site-packages\matplotlib\widgets.py", line 434, in _update
  23.     self.set_val(val)
  24.   File "C:\Python27\lib\site-packages\matplotlib\widgets.py", line 448, in set_val
  25.     func(val)
  26.   File "ModuleMismatchSimulator.py", line 423, in full_update
  27.     allCalc(ivp0, ps, sw, sh, sx, sy)
  28.   File "ModuleMismatchSimulator.py", line 307, in allCalc
  29.     numberCells=pvmod1.numberCells))
  30.   File "ModuleMismatchSimulator.py", line 97, in __init__
  31.     self.shadecells.append(module[j - 1, i - 1])
  32. IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boo
  33. lean arrays are valid indices
  34. Exception in Tkinter callback
  35. Traceback (most recent call last):
  36.   File "C:\Python27\lib\lib-tk\Tkinter.py", line 1537, in __call__
  37.     return self.func(*args)
  38.   File "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 402, in button_pre
  39. ss_event
  40.     FigureCanvasBase.button_press_event(self, x, y, num, dblclick=dblclick, guiEvent=event)
  41.   File "C:\Python27\lib\site-packages\matplotlib\backend_bases.py", line 1909, in button_press_event
  42.  
  43.     self.callbacks.process(s, mouseevent)
  44.   File "C:\Python27\lib\site-packages\matplotlib\cbook.py", line 549, in process
  45.     proxy(*args, **kwargs)
  46.   File "C:\Python27\lib\site-packages\matplotlib\cbook.py", line 416, in __call__
  47.     return mtd(*args, **kwargs)
  48.   File "C:\Python27\lib\site-packages\matplotlib\widgets.py", line 434, in _update
  49.     self.set_val(val)
  50.   File "C:\Python27\lib\site-packages\matplotlib\widgets.py", line 448, in set_val
  51.     func(val)
  52.   File "ModuleMismatchSimulator.py", line 423, in full_update
  53.     allCalc(ivp0, ps, sw, sh, sx, sy)
  54.   File "ModuleMismatchSimulator.py", line 307, in allCalc
  55.     numberCells=pvmod1.numberCells))
  56.   File "ModuleMismatchSimulator.py", line 97, in __init__
  57.     self.shadecells.append(module[j - 1, i - 1])
  58. IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boo
  59. lean arrays are valid indices
  60. Exception in Tkinter callback
  61. Traceback (most recent call last):
  62.   File "C:\Python27\lib\lib-tk\Tkinter.py", line 1537, in __call__
  63.     return self.func(*args)
  64.   File "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 420, in button_rel
  65. ease_event
  66.     FigureCanvasBase.button_release_event(self, x, y, num, guiEvent=event)
  67.   File "C:\Python27\lib\site-packages\matplotlib\backend_bases.py", line 1932, in button_release_eve
  68. nt
  69.     self.callbacks.process(s, event)
  70.   File "C:\Python27\lib\site-packages\matplotlib\cbook.py", line 549, in process
  71.     proxy(*args, **kwargs)
  72.   File "C:\Python27\lib\site-packages\matplotlib\cbook.py", line 416, in __call__
  73.     return mtd(*args, **kwargs)
  74.   File "C:\Python27\lib\site-packages\matplotlib\widgets.py", line 229, in _release
  75.     func(event)
  76.   File "ModuleMismatchSimulator.py", line 432, in SetTheShade
  77.     ivp0.shade.insert(0, ivp0.shade[-1])
  78. IndexError: list index out of range
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement