Skip to content

[BUG] *TO/VO/DO crashes when no quantities tracked in cost/constraints and no Tracked Quantities folder present #394

@bfregly

Description

@bfregly

Describe the bug
Eliminate the need to have tracked quantities data for quantities that are not tracked in the cost function or constraints.

If a TO, VO, or DO run does not track certain quantities in the cost function or constraints, the run will crash if the Tracked Quantities folder is not present with all of the typical subfolders and files present. To get the TO, VO, or DO run to work, you have to create a bogus Tracked Quantities folder with bogus (though formatted in the expected manner) data files in it.

To Reproduce
Run TO, VO, or DO on a sample problem with no tracked quantities in the cost function or constraints and do not have a Tracked Quantities folder with expected files present.

Expected behavior
If no quantities are tracked in the cost function or constraints, then a Track Quantities folder with associated files in it should not be required.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Windows, Mac M1, Mac Intel]
  • OpenSim Version: [e.g. 4.4]
  • MATLAB Version: [e.g. 2022b]
  • NMSM Pipeline Version: [e.g. v1.0]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions