move to wsl

This commit is contained in:
liuyihui 2022-11-22 17:29:48 +08:00
parent 5385cef9dc
commit 893507e340
9 changed files with 905 additions and 911 deletions

8
.gitignore vendored
View File

@ -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

View File

@ -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):

View File

@ -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()

View File

@ -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

Binary file not shown.