summaryrefslogtreecommitdiff
path: root/openEMS
diff options
context:
space:
mode:
authorRuben Undheim <ruben.undheim@gmail.com>2019-02-10 12:55:06 +0000
committerRuben Undheim <ruben.undheim@gmail.com>2019-10-19 19:20:44 +0200
commit9515e98f3e13358f86b98afceb9a4b98e9a0798c (patch)
treedac78161c61806ed8d218879349a84f47a878d3b /openEMS
parente6865a6b1fa7e21208660afe6533a48101f353aa (diff)
Fix some imports to make python interface work
Gbp-Pq: Name 0007-Fix-some-imports-to-make-python-interface-work.patch
Diffstat (limited to 'openEMS')
-rw-r--r--openEMS/python/openEMS/__init__.py2
-rw-r--r--openEMS/python/openEMS/nf2ff.py1
-rw-r--r--openEMS/python/openEMS/ports.py3
3 files changed, 5 insertions, 1 deletions
diff --git a/openEMS/python/openEMS/__init__.py b/openEMS/python/openEMS/__init__.py
index fb1ddb9..734aa76 100644
--- a/openEMS/python/openEMS/__init__.py
+++ b/openEMS/python/openEMS/__init__.py
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
#
# Shortcut openEMS import
+from __future__ import absolute_import
+
from openEMS.openEMS import openEMS
diff --git a/openEMS/python/openEMS/nf2ff.py b/openEMS/python/openEMS/nf2ff.py
index b6d38d0..b3792ff 100644
--- a/openEMS/python/openEMS/nf2ff.py
+++ b/openEMS/python/openEMS/nf2ff.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
+from __future__ import absolute_import
import os
import numpy as np
diff --git a/openEMS/python/openEMS/ports.py b/openEMS/python/openEMS/ports.py
index 1af1564..5b4fdc0 100644
--- a/openEMS/python/openEMS/ports.py
+++ b/openEMS/python/openEMS/ports.py
@@ -15,6 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
+from __future__ import absolute_import
import os
import numpy as np
@@ -45,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.