Traceback (most recent call last):
File "/Users/shashankbansal/miniconda/envs/spm_tuto/bin/fitlins", line 8, in <module>
sys.exit(main())
File "/Users/shashankbansal/miniconda/envs/spm_tuto/lib/python3.8/site-packages/fitlins/cli/run.py", line 432, in main
sys.exit(run_fitlins(sys.argv[1:]))
File "/Users/shashankbansal/miniconda/envs/spm_tuto/lib/python3.8/site-packages/fitlins/cli/run.py", line 425, in run_fitlins
report_dict = build_report_dict(deriv_dir, work_dir, graph)
File "/Users/shashankbansal/miniconda/envs/spm_tuto/lib/python3.8/site-packages/fitlins/viz/reports.py", line 130, in build_report_dict
{analysis_dict['entities']['subject'] for analysis_dict in report['nodes'][0]['analyses']}
File "/Users/shashankbansal/miniconda/envs/spm_tuto/lib/python3.8/site-packages/fitlins/viz/reports.py", line 130, in <setcomp>
{analysis_dict['entities']['subject'] for analysis_dict in report['nodes'][0]['analyses']}
KeyError: 'subject'
This is because fitlins report generation is hard-coded to expect a subject level node.
Environment
Expected Behavior
Reports should work the same for models with only first-level analysis.
Observed Behavior
This model fails with the following errors:
This is because fitlins report generation is hard-coded to expect a subject level node.