Closed isabelannwingert closed 4 years ago
Could you also paste the output of running it? You could just do it at the command line and use --dry-run
@TinasheMTapera Here is the Output from Dry Run:
Gear Name: fw-heudiconv, Gear Version: 0.2.10_0.2.4
Gear starting...
/flywheel/v0/fw_heudiconv/backend_funcs/query.py:4: UserWarning: The DICOM readers are highly experimental, unstable, and only work for Siemens time-series at the moment
Please use with caution. We would be grateful for your help in improving them
from nibabel.nicom.dicomwrappers import wrapper_from_data
INFO: ==============: fw-heudiconv gear manager starting up :===============
/usr/local/lib/python3.7/site-packages/flywheel/flywheel.py:6032: UserWarning: Client version 11.0.1 does not match server version 10.7.3. Please update your client version!
warnings.warn('Client version {} does not match server version {}. Please update your client version!'.format(SDK_VERSION, release_version))
WARNING: Use "pip install flywheel-sdk~=10.7.3" to install a compatible version for this server
Traceback (most recent call last):
File "./fw_heudiconv_run.py", line 49, in <module>
subject_container = fw.get(session_container.parents['subject'])
File "/usr/local/lib/python3.7/site-packages/flywheel/client.py", line 109, in get
return self._fw.get(id, **kwargs)
File "/usr/local/lib/python3.7/site-packages/flywheel/flywheel.py", line 6103, in get
return self.get_container(id, **kwargs)
File "/usr/local/lib/python3.7/site-packages/flywheel/flywheel.py", line 2143, in get_container
return self.containers_api.get_container(container_id, **kwargs)
File "/usr/local/lib/python3.7/site-packages/flywheel/api/containers_api.py", line 2486, in get_container
(data) = self.get_container_with_http_info(container_id, **kwargs) # noqa: E501
File "/usr/local/lib/python3.7/site-packages/flywheel/api/containers_api.py", line 2521, in get_container_with_http_info
raise ValueError("Missing the required parameter `container_id` when calling `get_container`") # noqa: E501
ValueError: Missing the required parameter `container_id` when calling `get_container`
Gear completed unsuccessfully after running for 1.516s.
Uploading results...
That's odd. Did you set any other parameters?
action | Curate |
---|---|
default_heuristic | |
do_whole_project | true |
dry_run | false |
extended_bids | true |
Hmm... Yeah the do whole project option may be buggy, can you try with one session?
Will do, have to wait til the gear finishes running 😦
Nope, does the same thing when applied to only one subject
@isabelannwingert did you run this from the project level? I think that might be the problem.
@mattcieslak we haven't coded fw-heudiconv
to run starting from the project, we hacked it to start from a session and have a flag for "do whole project" where it just starts at the session but goes to all the others. It looks like Flywheel has added functionality for gears starting from the project -- I think this used to just be project report but they now have an "Analysis" tab at the project level.
@isabelannwingert I can see that your gears started from the session always work, those started from the project don't. So right now your best solution is to start from one session and check "do whole project", we will start working on adding functionality to go from the full project.
That solves the first issue, could you paste the gear log of one of the successful ones so we can debug that?
@TinasheMTapera , sure, let me get that started. And yes, I ran this from the project level.
I'm gonna close this issue, @isabelannwingert just remember the main issues were:
In [43]: bool('string')
Out[43]: True
In [44]: bool('i' in 'string')
Out[44]: True
In [48]: bool('i' or 'x' in 'string')
Out[48]: True
In [49]: bool('y' or 'x' in 'string')
Out[49]: True
In [54]: bool('i' in 'string' or 'x' in 'string')
Out[54]: True
In [55]: bool('i' in 'string' and 'x' in 'string')
Out[55]: False
GitHub doesn't support attaching
.py
scripts, so heuristic is down below: