summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Undheim <ruben.undheim@gmail.com>2019-02-10 12:55:19 +0000
committerRuben Undheim <ruben.undheim@gmail.com>2019-02-10 12:55:19 +0000
commit1ecfb445f7afdb11a29ac237ad649a4f50c9bd23 (patch)
treeca3050659678e11bad926c0fd29a843cdde488f7
parentdf3d1f12fc19fe1590ee8faff24246c652072669 (diff)
Fix some imports to make python interface work
-rw-r--r--debian/patches/0007-Fix-some-imports-to-make-python-interface-work.patch52
-rw-r--r--debian/patches/series1
2 files changed, 53 insertions, 0 deletions
diff --git a/debian/patches/0007-Fix-some-imports-to-make-python-interface-work.patch b/debian/patches/0007-Fix-some-imports-to-make-python-interface-work.patch
new file mode 100644
index 0000000..84d0018
--- /dev/null
+++ b/debian/patches/0007-Fix-some-imports-to-make-python-interface-work.patch
@@ -0,0 +1,52 @@
+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):
diff --git a/debian/patches/series b/debian/patches/series
index 6107a1e..073e8d4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -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