Skip to content

Commit

Permalink
Include python source path
Browse files Browse the repository at this point in the history
  • Loading branch information
jurihock committed Jan 15, 2023
1 parent be2d6c6 commit 93904b8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
6 changes: 5 additions & 1 deletion examples/analysis.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
from sdft import SDFT
import os, sys
src = os.path.join(os.path.dirname(__file__), '..', 'src', 'python')
sys.path.insert(0, src)

import matplotlib.pyplot as plot
import numpy as np

from sdft import SDFT


def phase(t, f):

Expand Down
6 changes: 5 additions & 1 deletion examples/latency.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
from sdft import SDFT
import os, sys
src = os.path.join(os.path.dirname(__file__), '..', 'src', 'python')
sys.path.insert(0, src)

import matplotlib.pyplot as plot
import numpy as np

from sdft import SDFT


def signal(n):

Expand Down
9 changes: 4 additions & 5 deletions test/main.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import numpy as np
import os
import sys
import os, sys
src = os.path.join(os.path.dirname(__file__), '..', 'src', 'python')
sys.path.insert(0, src)

sys.path.insert(0, os.path.join(
os.path.dirname(__file__), '..', 'src', 'python'))
import numpy as np

from plot import spectrogram, figure, show
from sdft import STFT
Expand Down
9 changes: 4 additions & 5 deletions test/test.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import numpy as np
import os
import sys
import os, sys
src = os.path.join(os.path.dirname(__file__), '..', 'src', 'python')
sys.path.insert(0, src)

sys.path.insert(0, os.path.join(
os.path.dirname(__file__), '..', 'src', 'python'))
import numpy as np

from sdft import SDFT
from wav import readwav, writewav
Expand Down

0 comments on commit 93904b8

Please sign in to comment.