rcnl-org/nmsm-core

[BUG] reportDistanceErrorByMarker not reporting correct errors

RobSalati opened this issue · 1 comments

Describe the bug
reportDistanceErrorByMarker does not properly respond to changes in the markerNames argument. Changing the order in markerNames does not change the corresponding order of the data columns in the output .sto file, it only changes the column labels.

To Reproduce
Steps to reproduce the behavior:

  1. Go to JMP Tutorial
  2. Run the plot and analyze data block & save the output figure
  3. Change the order of the markers in markerNames
  4. Run the plot and analyze data block again
  5. Note that the plots are exactly the same with the exception of the legends

Expected behavior
reportDistanceErrorByMarker should change the order of the data columns when the order of marker inputs is changed, rather than just changing the column label and nothing else

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 11
  • OpenSim Version: 4.5
  • MATLAB Version: 2023a
  • NMSM Pipeline Version: V 1.1

fixed on dev