shieru1214 opened a new pull request, #2638:
URL: https://github.com/apache/systemds/pull/2638

   This change fixes format checks and error messages in `TimeseriesLoader` and 
adds tests for them.
   
   ### TimeseriesLoader fixes
   
   - Remove `mat` and `hdf5` from the supported formats because they are not 
implemented yet, and add `csv` to the format check.
   - Make the “file not found” error show the actual filename.
   - Add a helper that imports `wfdb` only when needed and gives an 
installation hint if the package is missing. This does not add 
`file_format="wfdb"` support yet.
   
   ### Tests
   
   I enabled `test_timeseries_loader_loads_all_instances` and 
`test_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 check 
`max_length` and `num_signals`.
   
   The new tests check that the missing filename appears in the error, that 
`mat`, `hdf5`, and unknown formats are rejected, and that selecting `y` from a 
two-column CSV returns exactly the second column. I also added a test for the 
installation hint when `wfdb` is missing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to