From 8908489c1f8d49f29a88dd2b1eed86e2cdb38852 Mon Sep 17 00:00:00 2001 From: Ruben Undheim Date: Wed, 13 Feb 2019 22:28:15 +0100 Subject: [PATCH] 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 --- python/openEMS/ports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/openEMS/ports.py b/python/openEMS/ports.py index 4edd68d..5b4fdc0 100644 --- a/python/openEMS/ports.py +++ b/python/openEMS/ports.py @@ -46,7 +46,7 @@ class UI_data: self.ui_f_val.append(utilities.DFT_time2freq(tmp[:,0], tmp[:,1], freq, signal_type=signal_type)) # Port Base-Class -class Port: +class Port(object): """ The port base class.