ukri-excalibur / excalibur-tests

Performance benchmarks and regression tests for the ExCALIBUR project
https://ukri-excalibur.github.io/excalibur-tests/
Apache License 2.0
18 stars 15 forks source link

Fix perflog parsing with dictionary fields containing null #261

Closed pineapple-cat closed 7 months ago

pineapple-cat commented 7 months ago

Change df[col].apply(lambda x: ast.literal_eval(x)) to either df[col].apply(lambda x: ast.literal_eval(x.replace('null', 'None'))) or df[col].apply(lambda x: json.loads(x)), otherwise the current code throws ValueError: malformed node or string when the dict contents of extra_resources or env_vars contain a null.