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
*.png
*.txt
2016Q3D/
data/
result/
!requirements.txt
# env
venv/
# build cache
__pycache__
# config
.vscode
.vs
# dev
*.ipynb
test*
*.code-workspace

View File

@ -219,7 +219,7 @@ class Bind(object):
plt.ylabel("Output - Right (Y) / (channel)")
ax.legend()
fig.savefig(title, facecolor="w", transparent=False, bbox_inches='tight')
fig.savefig(title, facecolor="w", transparent=False, bbox_inches="tight")
plt.close()
def draw_peak(self, title):

View File

@ -4,7 +4,7 @@ import numpy as np
from tqdm import tqdm
from matplotlib import pyplot as plt
from .Bind import Bind
from .bind import Bind
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()))
for row in file_list:
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):
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.close()
@ -50,10 +50,10 @@ class Calibration(object):
pbar = tqdm(desc="Read Data E2", total=len(open(file2, "r").readlines()))
for row in file_list:
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):
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.close()

View File

@ -3,7 +3,7 @@ import numpy as np
from tqdm import tqdm
from matplotlib import pyplot as plt
from .Bind import Bind
from .bind import Bind
from .fit import fit_line
from .model import Linear1D
from .utils import readFileData, get_hist

Binary file not shown.