Commit 1ecfb445 authored by Ruben Undheim's avatar Ruben Undheim

Fix some imports to make python interface work

parent df3d1f12
From: Ruben Undheim <ruben.undheim@gmail.com>
Date: Sun, 10 Feb 2019 12:55:06 +0000
Subject: Fix some imports to make python interface work
---
openEMS/python/openEMS/__init__.py | 3 ++-
openEMS/python/openEMS/nf2ff.py | 4 ++--
openEMS/python/openEMS/ports.py | 4 ++--
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/openEMS/python/openEMS/__init__.py b/openEMS/python/openEMS/__init__.py
index fb1ddb9..b54ab97 100644
--- a/openEMS/python/openEMS/__init__.py
+++ b/openEMS/python/openEMS/__init__.py
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
#
# Shortcut openEMS import
-from openEMS.openEMS import openEMS
+#from openEMS.openEMS import openEMS
+from openEMS import openEMS
diff --git a/openEMS/python/openEMS/nf2ff.py b/openEMS/python/openEMS/nf2ff.py
index b6d38d0..5b3ffc1 100644
--- a/openEMS/python/openEMS/nf2ff.py
+++ b/openEMS/python/openEMS/nf2ff.py
@@ -19,8 +19,8 @@
import os
import numpy as np
import h5py
-from openEMS import _nf2ff
-from openEMS import utilities
+import _nf2ff
+import utilities
class nf2ff:
"""
diff --git a/openEMS/python/openEMS/ports.py b/openEMS/python/openEMS/ports.py
index 1af1564..2e1088a 100644
--- a/openEMS/python/openEMS/ports.py
+++ b/openEMS/python/openEMS/ports.py
@@ -19,9 +19,9 @@
import os
import numpy as np
from CSXCAD.Utilities import CheckNyDir
-from openEMS import utilities
+import utilities
-from openEMS.physical_constants import *
+from physical_constants import *
class UI_data:
def __init__(self, fns, path, freq, signal_type='pulse', **kw):
......@@ -4,3 +4,4 @@
0004-link-more.patch
0005-Deletede-CVS-dir-lintian.patch
0006-Don-t-exit-from-library.patch
0007-Fix-some-imports-to-make-python-interface-work.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment