mirror of
https://gitlab.science.ru.nl/mthesis-edeboone/m-thesis-introduction.git
synced 2025-05-17 21:39:23 +02:00
Simu: Python's import system is too hard for me
This commit is contained in:
parent
a50f6640a4
commit
e4af62e51d
3 changed files with 15 additions and 10 deletions
|
@ -2,10 +2,12 @@
|
|||
import numpy as np
|
||||
import scipy.interpolate as interp
|
||||
|
||||
try:
|
||||
from .signal import *
|
||||
except ImportError:
|
||||
from signal import *
|
||||
if __name__ == "__main__" and __package__ is None:
|
||||
import sys
|
||||
sys.path.append("../../")
|
||||
__package__ = "lib.signals"
|
||||
|
||||
from .signal import *
|
||||
|
||||
class DigitisedSignal(Signal):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue