Ran
|
Jobs
4
|
Files
168
|
Run time
7s
|
Badge
Embed ▾
README BADGES
|
push
github
Reimplement AnalysisResultTable (#1252) ### Summary Follow-up of #1133 for data frame. ### Details and comments I realized I had some mistake when I wrote a base class of `ThreadSafeDataFrame`. We plan to move the curve data (XY data) to the artifact for better reusability of the data points. In addition, [CurveData](https://github.com/Qiskit-Extensions/qiskit-experiments/blob/c66034c90/qiskit_experiments/curve_analysis/curve_data.py#L88-L113) object which is a container of the XY data is also replaced with the data frame in a follow up PR. Since this table should contain predefined columns such as `xval`, `yval`, `yerr`, I was assuming this container could be a subclass of `ThreadSafeDataFrame` -- but this was not a right assumption. Since the curve analysis always runs on a single thread (analysis callbacks might be run on multiple threads and thus `AnalysisResultTable` must be thread-safe), this curve data frame doesn't need to be thread-safe object. In this PR, a functionality to define default columns of the table is reimplemented as a Python mixin class so that the function to add default columns will be used also for curve data frame without introducing the unnecessary thread safe mechanisms. `AnalysisResultTable` is a thread safe container but the functionality to manage default columns is delegated to the mixin.
84 of 84 new or added lines in 4 files covered. (100.0%)
12384 of 14028 relevant lines covered (88.28%)
3.53 hits per line
Lines | Coverage | ∆ | File |
---|---|---|---|
2 |
93.94 |
qiskit_experiments/framework/table_mixin.py | |
6 |
84.95 |
3.46% | qiskit_experiments/framework/analysis_result_table.py |
Lines | Coverage | ∆ | File |
---|---|---|---|
1 |
87.11 |
-0.09% | qiskit_experiments/framework/experiment_data.py |
1 |
80.49 |
-0.35% | qiskit_experiments/framework/json.py |
ID | Job ID | Ran | Files | Coverage | |
---|---|---|---|---|---|
1 | unit-tests_python3.10-macOS-latest - 6009595088.1 | 168 |
88.28 |
GitHub Action Run | |
2 | unit-tests_python3.8-macOS-latest - 6009595088.2 | 168 |
88.25 |
GitHub Action Run | |
3 | unit-tests_python3.11-macOS-latest - 6009595088.3 | 168 |
88.28 |
GitHub Action Run | |
4 | unit-tests_python3.9-macOS-latest - 6009595088.4 | 168 |
88.25 |
GitHub Action Run |
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|