Repository navigation
[SYSTEMDS-3991] Prepare PTB-XL ECG dataset for Scuro - #2638
shieru1214 wants to merge 7 commits into
Conversation
Assisted-by: AI
Assisted-by: AI
Assisted-by: AI
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2638 +/- ##
=============================================
+ Coverage 72.18% 76.67% +4.49%
=============================================
Files 2105 458 -1647
Lines 230158 31346 -198812
Branches 38694 0 -38694
=============================================
- Hits 166139 24035 -142104
+ Misses 52813 7311 -45502
+ Partials 11206 0 -11206
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
christinadionysio
left a comment
There was a problem hiding this comment.
Thank you @shieru1214, overall this looks good! Please add the wfdb dependency to the python.yml file where the test environment for Scuro is created so the tests can also run in the CI.
Assisted-by: AI
Assisted-by: AI
Thanks! wfdb is now in the Scuro test environment. |
Assisted-by: AI
This change fixes format checks and error messages in
TimeseriesLoaderand adds tests for them.TimeseriesLoader fixes
matandhdf5from the supported formats because they are not implemented yet, and addcsvto the format check.wfdbonly when needed and gives an installation hint if the package is missing. This does not addfile_format="wfdb"support yet.Tests
I enabled
test_timeseries_loader_loads_all_instancesandtest_timeseries_loader_stats. They now use["x", "y"]as signal names. The data generator writes 10 samples with 2 signals, so the stats test can checkmax_lengthandnum_signals.The new tests check that the missing filename appears in the error, that
mat,hdf5, and unknown formats are rejected, and that selectingyfrom a two-column CSV returns exactly the second column. I also added a test for the installation hint whenwfdbis missing.