GSTT-CSC / MLOps

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

Handle multtiple valid experiments in XNAT #129

Closed laurencejackson closed 1 year ago

laurencejackson commented 1 year ago

At the moment when an action finds multiple valid scans, it returns a list of XNAT objects.

However,, a filter is applied at the end of the actions (tools.py) where if a sample has a number of items not equal to the number of actions that sample is removed.

image

The intention here is to remove samples where the necessary data doesn't exist. But it will also remove valid samples, for example if multiple experiments have valid images. In this case 2 images are returned after applying one action.

subject |--exp1 |--valid image |-- exp2 |--valid image

Solution is to revisit the way that data is collected and actions are valdiated.