Explicitly extend from 'object' to prevent issue in Python 2

Otherwise, it fails with:

  File "/usr/local/lib/python2.7/dist-packages/openEMS/ports.py", line 205, in __init__
    super(MSLPort, self).__init__(CSX, port_nr=port_nr, start=start, stop=stop, excite=excite, **kw)
TypeError: super() argument 1 must be type, not classobj
pull/45/head
Ruben Undheim 2019-02-13 22:28:15 +01:00
parent 89bbd35906
commit 8908489c1f
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class UI_data:
self.ui_f_val.append(utilities.DFT_time2freq(tmp[:,0], tmp[:,1], freq, signal_type=signal_type)) self.ui_f_val.append(utilities.DFT_time2freq(tmp[:,0], tmp[:,1], freq, signal_type=signal_type))
# Port Base-Class # Port Base-Class
class Port: class Port(object):
""" """
The port base class. The port base class.