Skip to content
Snippets Groups Projects
Commit 4ca967d5 authored by Danilo Ferreira de Lima's avatar Danilo Ferreira de Lima
Browse files

Bugfix in debug plot.

parent 34f1e4f0
No related branches found
No related tags found
No related merge requests found
...@@ -131,7 +131,7 @@ class Model(object): ...@@ -131,7 +131,7 @@ class Model(object):
""" """
# reduce on channel and on train ID # reduce on channel and on train ID
sum_low_res = - np.mean(sum(list(low_res_data.values())), axis=0) sum_low_res = - np.mean(sum(list(low_res_data.values())), axis=0)
widths = np.arange(10, 50, step=5) widths = np.arange(10, 50, step=1)
peak_idx = find_peaks_cwt(sum_low_res, widths) peak_idx = find_peaks_cwt(sum_low_res, widths)
if len(peak_idx) < 1: if len(peak_idx) < 1:
raise PromptNotFoundError() raise PromptNotFoundError()
...@@ -158,7 +158,7 @@ class Model(object): ...@@ -158,7 +158,7 @@ class Model(object):
ax.set(title="", ax.set(title="",
xlabel="Photon Spectrometer channel", xlabel="Photon Spectrometer channel",
ylabel="Sum of all Photon Spectrometer channels") ylabel="Sum of all Photon Spectrometer channels")
plt.axvline(100, plt.axvline(peak_idx,
linewidth=3, linewidth=3,
ls="--", ls="--",
color='r', color='r',
......
...@@ -111,7 +111,7 @@ def main(): ...@@ -111,7 +111,7 @@ def main():
n_pca_hr=20, n_pca_hr=20,
high_res_sigma=0.2, high_res_sigma=0.2,
tof_start=None, tof_start=None,
delta_tof=400, delta_tof=200,
validation_size=0.05) validation_size=0.05)
train_idx = np.isin(tids, train_tids) train_idx = np.isin(tids, train_tids)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment