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.
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.
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.
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.