Fix: Visualization Bug
danfke opened this issue · 3 comments
Currently if only one MU is accepted the dashboard doesn't work. Also it won't work with both the Hug et al. data and our data with the way we've currently implemented it. We need to make sure that the data structures match within the function to allow it to work for both sets of data.
@Radascript the RMSE is not working, I'm not sure when it broke.
The only bug left is that the dashboard won't work if only one MU is accepted.
From @Rowansiv:
Data Compatability bug with Viz Tool
-
Issue is that the muap_dict and pulse_plot functions are written assuming the input data 'looks a certain way'. That is, it works on the basis that the data has multiple motor units and therefore is an array of arrays.
-
However, if a dataset containing only a single motor unit is passed, it will incorrectly loop through the spike timings as opposed to each motor unit.
-
The output of the decomposition function removes all unnecessary dimensionality so any if/else statements would need to find a differentiator between a dataset with multiple arrays (motor units) and a dataset that is an array for a single motor unit.
-
Possible solutions could include using an if/else statement or adding a 'dummy' motor unit so that each dataset contains multiple motor units which would allow the functions to appropriately loop through each motor unit.