Skip to content

Commit

Permalink
fix: fix RMSE broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Radascript committed Jun 28, 2022
1 parent 0bbb665 commit cdc976d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/emgdecompy/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def channel_preset(preset="standard"):


def muap_plot(
mu_data, mu_index, peak_data=None, l=31, peak="", method=RMSE, preset="standard"
mu_data, mu_index, peak_data=None, l=31, peak="", method="RMSE", preset="standard"
):
"""
Returns a plot for MUAP shapes separated by channel.
Expand Down Expand Up @@ -584,7 +584,7 @@ def pulse_plot(pt, c_sq_mean, mu_index, sel_type="single"):


def select_peak(
selection, mu_index, raw, shape_dict, pt, preset="standard", method=RMSE
selection, mu_index, raw, shape_dict, pt, preset="standard", method="RMSE"
):
"""
Retrieves a given peak (if any) and re-graphs MUAP plot via muap_plot() function.
Expand Down Expand Up @@ -616,7 +616,7 @@ def select_peak(
global selected_peak

if not selection:
plot = muap_plot(shape_dict, mu_index, l=31, preset=preset, method=RMSE)
plot = muap_plot(shape_dict, mu_index, l=31, preset=preset, method="RMSE")
selected_peak = -1

else:
Expand All @@ -632,7 +632,7 @@ def select_peak(
l=31,
peak=str(round(peak / 2048, 2)),
preset=preset,
method=RMSE,
method="RMSE",
)

return pn.Column(
Expand Down

0 comments on commit cdc976d

Please sign in to comment.