Closed tomaroberts closed 5 months ago
Coverage Report
File Stmts Miss Cover Missing mlops Experiment.py 150 30 80% 44–49, 70, 77–78, 95, 97, 102, 172–186, 205, 207–208, 256–257, 265–268, 272–273, 280–281 ProjectFile.py 23 1 96% 41 cli.py 54 17 69% 19–22, 36, 58–64, 84–86, 94–97, 105–106, 111 mlops/data/tools tools.py 107 92 14% 18–26, 29, 32–67, 70–123, 136–209 mlops/data/transforms LoadImageXNATd.py 60 47 22% 28–34, 56–123 mlops/release Release.py 33 7 79% 24, 28, 33–38 mlops/release/destinations ReleaseDestination.py 9 1 89% 18 SharepointDestination.py 6 2 67% 12–13 ZenodoDestination.py 33 19 42% 21–25, 29–35, 43–60 mlops/release/sources MLFlowSource.py 13 6 54% 13–14, 21–27 ReleaseSource.py 14 2 86% 14, 23 mlops/utils Config.py 17 17 0% 1–24 TOTAL 557 241 57%
Tests | Skipped | Failures | Errors | Time |
---|---|---|---|---|
19 | 2 :zzz: | 0 :x: | 0 :fire: | 4m 0s :stopwatch: |
The AutoSegCT pipeline requires extracting the filenames from the Resource objects within XNAT. This is not currently possible with the MLOps DataBuilderXNAT class.
This PR adds a simple condition whereby if the XNAT object under inspection contains an XNAT Resource object (identified by obj.cache_id = ResourceCatalog), then it collects the Resource object filenames and adds them to the action_data dictionary.
If a Resource object is not found, it proceeds with default DataBuilderXNAT behaviour.