CoMD icon indicating copy to clipboard operation
CoMD copied to clipboard

YAML output fix

Open omaralvarez opened this issue 8 years ago • 0 comments

As is, when using a YAML parser there is a Scanner error: mapping values are not allowed in this context.

This PR fixes #5.

The problematic chunk of the output is for example:

Performance Results For Rank 0:
  Timer: total
    CallCount:  1
    AvgPerCall:   6.0009
    Total:        6.0009
    PercentLoop:   101.79
  Timer: loop
    CallCount:  1
    AvgPerCall:   6.0009
    Total:        6.0009
    PercentLoop:   101.79

It should instead output:

Performance Results For Rank 0:
  - Timer: total
    CallCount:  1
    AvgPerCall:   6.0009
    Total:        6.0009
    PercentLoop:   101.79
  - Timer: loop
    CallCount:  1
    AvgPerCall:   6.0009
    Total:        6.0009
    PercentLoop:   101.79

With these changes the YAML output is compliant with the standard version 1.2.

omaralvarez avatar Feb 18 '17 12:02 omaralvarez