intel / p3-analysis-library

A library simplifying the collection and interpretation of P3 data.
https://intel.github.io/p3-analysis-library/
MIT License
7 stars 10 forks source link

Support coverage strings and objects #60

Open Pennycook opened 1 month ago

Pennycook commented 1 month ago

Feature/behavior summary

A lot of our examples of working with coverage are driven by CSV data, where coverage is stored as a JSON string. When working with other data formats (e.g., raw JSON) it is very easy to end up with a pandas DataFrame that stores a JSON object rather than a JSON string.

Since both are JSON, we should be permissive and accept both.

Request attributes

Related issues

No response

Solution description

Check whether a given coverage entry is a string or an object, and handle it accordingly.

Additional notes

No response