Skip to content

Request an option to format CSV output.  #475

@goehle

Description

@goehle
  • what are you trying to do? We are printing debugging output to a CSV using the common::CSV class. The debugging information includes reported latitude and longitude at each time step.

  • what is the problem and how can it be recreated? CSV uses std::to_string to print the rows which produces 6 decimal places. This isn't enough for latitudes and longitudes. For debugging purposes we usually use 12 decimal places. One solution would be to modify CSV to use something like sprintf and allow for formatting fields. Another solution would be to modify CSV to support string inputs to rows so that entries could be preformatted.

  • what scrimmage commit are you on? You can see this with git rev-parse HEAD
    cb566bc

  • describe any changes you made to scrimmage.
    None. We could add the feature ourselves but don't want to fork the CSV library.

  • If you can recreate the issue using only plugins in the scrimmage repository, what mission file are you running?
    N/A

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions