move to wsl
This commit is contained in:
parent
5385cef9dc
commit
893507e340
8
.gitignore
vendored
8
.gitignore
vendored
@ -5,22 +5,16 @@
|
|||||||
*.json
|
*.json
|
||||||
*.png
|
*.png
|
||||||
*.txt
|
*.txt
|
||||||
2016Q3D/
|
data/
|
||||||
result/
|
result/
|
||||||
!requirements.txt
|
!requirements.txt
|
||||||
|
|
||||||
# env
|
|
||||||
venv/
|
|
||||||
|
|
||||||
# build cache
|
# build cache
|
||||||
__pycache__
|
__pycache__
|
||||||
|
|
||||||
# config
|
# config
|
||||||
.vscode
|
.vscode
|
||||||
.vs
|
|
||||||
|
|
||||||
# dev
|
# dev
|
||||||
*.ipynb
|
*.ipynb
|
||||||
test*
|
test*
|
||||||
|
|
||||||
*.code-workspace
|
|
||||||
|
@ -219,7 +219,7 @@ class Bind(object):
|
|||||||
plt.ylabel("Output - Right (Y) / (channel)")
|
plt.ylabel("Output - Right (Y) / (channel)")
|
||||||
|
|
||||||
ax.legend()
|
ax.legend()
|
||||||
fig.savefig(title, facecolor="w", transparent=False, bbox_inches='tight')
|
fig.savefig(title, facecolor="w", transparent=False, bbox_inches="tight")
|
||||||
plt.close()
|
plt.close()
|
||||||
|
|
||||||
def draw_peak(self, title):
|
def draw_peak(self, title):
|
@ -4,7 +4,7 @@ import numpy as np
|
|||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
from matplotlib import pyplot as plt
|
from matplotlib import pyplot as plt
|
||||||
|
|
||||||
from .Bind import Bind
|
from .bind import Bind
|
||||||
from .utils import readBlockData, get_hist
|
from .utils import readBlockData, get_hist
|
||||||
|
|
||||||
|
|
||||||
@ -39,10 +39,10 @@ class Calibration(object):
|
|||||||
pbar = tqdm(desc="Read Data E1", total=len(open(file1, "r").readlines()))
|
pbar = tqdm(desc="Read Data E1", total=len(open(file1, "r").readlines()))
|
||||||
for row in file_list:
|
for row in file_list:
|
||||||
pn = int(row[1])
|
pn = int(row[1])
|
||||||
ldata, rdata = readBlockData(row[0], int(row[5]), pn, m)
|
ldata, rdata = readBlockData(row[0], int(row[3]), pn, m)
|
||||||
for i in range(m):
|
for i in range(m):
|
||||||
bind = self.binds[pn][i]
|
bind = self.binds[pn][i]
|
||||||
bind.add_data(0, ldata[i], rdata[i], float(row[4]))
|
bind.add_data(0, ldata[i], rdata[i], float(row[2]))
|
||||||
pbar.update(1)
|
pbar.update(1)
|
||||||
pbar.close()
|
pbar.close()
|
||||||
|
|
||||||
@ -50,10 +50,10 @@ class Calibration(object):
|
|||||||
pbar = tqdm(desc="Read Data E2", total=len(open(file2, "r").readlines()))
|
pbar = tqdm(desc="Read Data E2", total=len(open(file2, "r").readlines()))
|
||||||
for row in file_list:
|
for row in file_list:
|
||||||
pn = int(row[1])
|
pn = int(row[1])
|
||||||
ldata, rdata = readBlockData(row[0], int(row[5]), pn, m)
|
ldata, rdata = readBlockData(row[0], int(row[3]), pn, m)
|
||||||
for i in range(m):
|
for i in range(m):
|
||||||
bind = self.binds[pn][i]
|
bind = self.binds[pn][i]
|
||||||
bind.add_data(1, ldata[i], rdata[i], float(row[4]))
|
bind.add_data(1, ldata[i], rdata[i], float(row[2]))
|
||||||
pbar.update(1)
|
pbar.update(1)
|
||||||
pbar.close()
|
pbar.close()
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import numpy as np
|
|||||||
from tqdm import tqdm
|
from tqdm import tqdm
|
||||||
from matplotlib import pyplot as plt
|
from matplotlib import pyplot as plt
|
||||||
|
|
||||||
from .Bind import Bind
|
from .bind import Bind
|
||||||
from .fit import fit_line
|
from .fit import fit_line
|
||||||
from .model import Linear1D
|
from .model import Linear1D
|
||||||
from .utils import readFileData, get_hist
|
from .utils import readFileData, get_hist
|
||||||
|
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
Loading…
Reference in New Issue
Block a user