move to wsl
This commit is contained in:
parent
5385cef9dc
commit
893507e340
8
.gitignore
vendored
8
.gitignore
vendored
@ -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
|
||||
|
@ -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):
|
@ -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()
|
||||
|
||||
|
@ -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
|
||||
|
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
Loading…
Reference in New Issue
Block a user