RRZE-HPC / likwid

Performance monitoring and benchmarking suite
https://hpc.fau.de/research/tools/likwid/
GNU General Public License v3.0
1.64k stars 226 forks source link

Fix for JSON filter script #588

Closed TomTheBear closed 8 months ago

TomTheBear commented 8 months ago

The script currently crashes when a result is - (not counted or device does not exist). This fix replaces these values with NaN for JSON. Although NaN is not officially allowed by the JSON standard, the Python JSON module handles them properly: http://docs.python.org/library/json.html#basic-usage