GSTT-CSC / MLOps

Framework for building ML apps
GNU General Public License v3.0
10 stars 5 forks source link

Adds condition to retrieve Resource filenames from xnat_obj #165

Closed tomaroberts closed 5 months ago

tomaroberts commented 5 months ago

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.

github-actions[bot] commented 5 months ago

Coverage

Coverage Report
FileStmtsMissCoverMissing
mlops
   Experiment.py1503080%44–49, 70, 77–78, 95, 97, 102, 172–186, 205, 207–208, 256–257, 265–268, 272–273, 280–281
   ProjectFile.py23196%41
   cli.py541769%19–22, 36, 58–64, 84–86, 94–97, 105–106, 111
mlops/data/tools
   tools.py1079214%18–26, 29, 32–67, 70–123, 136–209
mlops/data/transforms
   LoadImageXNATd.py604722%28–34, 56–123
mlops/release
   Release.py33779%24, 28, 33–38
mlops/release/destinations
   ReleaseDestination.py9189%18
   SharepointDestination.py6267%12–13
   ZenodoDestination.py331942%21–25, 29–35, 43–60
mlops/release/sources
   MLFlowSource.py13654%13–14, 21–27
   ReleaseSource.py14286%14, 23
mlops/utils
   Config.py17170%1–24
TOTAL55724157% 

Tests Skipped Failures Errors Time
19 2 :zzz: 0 :x: 0 :fire: 4m 0s :stopwatch: