fixed language_level and edit makefile
This commit is contained in:
parent
61d8473cbd
commit
6abb84ef7f
12
example.py
12
example.py
@ -32,13 +32,9 @@ print("\n\n")
|
|||||||
print(channels[0:40])
|
print(channels[0:40])
|
||||||
|
|
||||||
x = np.linspace(0,Nlen,Nlen)
|
x = np.linspace(0,Nlen,Nlen)
|
||||||
plt.plot(x,channels[0:1000])
|
plt.plot(x,channels[0:Nlen])
|
||||||
plt.plot(x,channels[1000:2000])
|
plt.plot(x,channels[Nlen:2*Nlen])
|
||||||
plt.plot(x,channels[2000:3000])
|
plt.plot(x,channels[2*Nlen:3*Nlen])
|
||||||
plt.plot(x,channels[3000:4000])
|
|
||||||
plt.plot(x,channels[4000:5000])
|
|
||||||
plt.plot(x,channels[5000:6000])
|
|
||||||
plt.plot(x,channels[6000:7000])
|
|
||||||
plt.plot(x,channels[7000:8000])
|
|
||||||
plt.grid()
|
plt.grid()
|
||||||
plt.show()
|
plt.show()
|
||||||
|
5
makefile
5
makefile
@ -17,10 +17,7 @@ tdm_ripper.o : lib/tdm_ripper.cpp lib/tdm_ripper.hpp
|
|||||||
clean :
|
clean :
|
||||||
rm -f $(EXE) *.o
|
rm -f $(EXE) *.o
|
||||||
|
|
||||||
newlib :
|
pylib : setup.py pytdm_ripper.pyx tdm_ripper.pxd tdm_ripper.o
|
||||||
g++ -bundle -undefined dynamic_lookup -L/anaconda3/lib -arch x86_64 -L/anaconda3/lib -arch x86_64 -arch x86_64 build/temp.macosx-10.7-x86_64-3.7/pytdm_ripper.o -Llib -o /Users/mariofink/Desktop/tdm_tdx/tdm_ripper/pytdm_ripper.cpython-37m-darwin.so
|
|
||||||
|
|
||||||
pylib : setup.py pytdm_ripper.pyx tdm_ripper.pxd
|
|
||||||
python3 setup.py build_ext --inplace
|
python3 setup.py build_ext --inplace
|
||||||
|
|
||||||
lib/libtdmripper.a :
|
lib/libtdmripper.a :
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
# cython: language_level = 3
|
|
||||||
# distutils: language = c++
|
|
||||||
|
|
||||||
from tdm_ripper cimport tdm_ripper
|
from tdm_ripper cimport tdm_ripper
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
# cython: language_level = 3
|
||||||
|
# distutils: language = c++
|
||||||
|
|
||||||
# use some C++ STL libraries
|
# use some C++ STL libraries
|
||||||
from libcpp.string cimport string
|
from libcpp.string cimport string
|
||||||
from libcpp.vector cimport vector
|
from libcpp.vector cimport vector
|
||||||
|
Loading…
x
Reference in New Issue
Block a user