Commit 10e10e12 authored by Lars Bittrich's avatar Lars Bittrich
Browse files

relative import fix. Gepard can now be imported as a module.

IMPORTANT: start Gepard by: "python -m gepard" outside of the module directory
parent 8fc15b1e
Loading
Loading
Loading
Loading

__init__.py

0 → 100644
+0 −0

Empty file added.

+7 −7
Original line number Diff line number Diff line
@@ -18,13 +18,13 @@ You should have received a copy of the GNU General Public License
along with this program, see COPYING.  
If not, see <https://www.gnu.org/licenses/>.
"""
from PyQt5 import QtCore, QtWidgets, QtGui
from sampleview import SampleView
from scalebar import ScaleBar
from ramancom.ramancontrol import defaultPath
from ramancom.ramanSwitch import RamanSwitch
from colorlegend import ColorLegend
import os
from PyQt5 import QtCore, QtWidgets, QtGui
from .sampleview import SampleView
from .scalebar import ScaleBar
from .ramancom.ramancontrol import defaultPath
from .ramancom.ramanSwitch import RamanSwitch
from .colorlegend import ColorLegend
            
class MeasureParticleWindow(QtWidgets.QMainWindow):
    
@@ -116,7 +116,7 @@ class MeasureParticleWindow(QtWidgets.QMainWindow):

    def createActions(self):
        fname = os.path.join(os.path.split(__file__)[0],
                             os.path.join("data","brand.png"))
                             os.path.join('data', 'brand.png'))
        self.aboutAct = QtWidgets.QAction(QtGui.QIcon(fname),
                                          "About Particle Measurment", self)
        self.aboutAct.triggered.connect(self.about)
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ If not, see <https://www.gnu.org/licenses/>.
import os
import numpy as np
import operator
from dataset import loadData, recursiveDictCompare
from ..dataset import loadData, recursiveDictCompare


def readDataStats(fname):
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ import os
import pickle
import numpy as np
import cv2
from helperfunctions import cv2imread_fix, cv2imwrite_fix
from .helperfunctions import cv2imread_fix, cv2imwrite_fix
from copy import copy

currentversion = 2
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ If not, see <https://www.gnu.org/licenses/>.
"""
import numpy as np
from PyQt5 import QtCore, QtWidgets, QtGui
from segmentation import Segmentation
from .segmentation import Segmentation
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg
import matplotlib.pyplot as plt
from threading import Thread
Loading