Australian-Imaging-Service / pipelines

Scripts to generate analysis pipelines that can be run in XNAT's container service
Other
2 stars 3 forks source link

[BUG] Filetype error at the end of `5TTgen_hsvs` #280

Open arkiev opened 6 months ago

arkiev commented 6 months ago

Description

5TTgen_hsvs produces the desired output image, and then an error message appears from the __init__.py file. Not sure why the filetype of the 5TTgen directory is being checked...

Expected behaviour

Since the 5TT image is successfully generated, it would be fed into subsequent nodes

error message

Exception has occurred: FormatMismatchError
Path that matches extension of <class 'fileformats.generic.File'>, "/Users/arkievdsouza/git/t1-pipeline/working-dir/T1_ProcessingPipeline_v1_testing/FivettGen_Hsvs_5f85384fd0f3e0fbe00ce520baf7fd25", is a directory not a file
  File "/Users/arkievdsouza/git/fileformats/fileformats/generic/__init__.py", line 64, in fspath
    raise FormatMismatchError(
  File "/Users/arkievdsouza/git/fileformats/fileformats/core/fileset.py", line 108, in __attrs_post_init__
    getattr(self, prop_name)
  File "/Users/arkievdsouza/git/pydra/pydra/utils/typing.py", line 329, in coerce_obj
    return type_(obj)
           ^^^^^^^^^^
  File "/Users/arkievdsouza/git/pydra/pydra/utils/typing.py", line 247, in coerce_basic
    return coerce_obj(obj, pattern)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/arkievdsouza/git/pydra/pydra/utils/typing.py", line 210, in expand_and_coerce
    return coerce_basic(obj, pattern)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/arkievdsouza/git/pydra/pydra/utils/typing.py", line 340, in coerce
    return expand_and_coerce(object_, self.pattern)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/arkievdsouza/git/pydra/pydra/utils/typing.py", line 197, in __call__
    coerced = self.coerce(obj)
              ^^^^^^^^^^^^^^^^
  File "/Users/arkievdsouza/git/pydra/pydra/engine/core.py", line 593, in _collect_outputs
    return attr.evolve(output, **self.output_, **other_output)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/arkievdsouza/git/pydra/pydra/engine/core.py", line 562, in _run
    result.output = self._collect_outputs(output_dir=output_dir)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/arkievdsouza/git/pydra/pydra/engine/workers.py", line 146, in exec_serial
    return runnable._run(rerun, environment=environment)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/arkievdsouza/git/pydra/pydra/engine/workers.py", line 152, in fetch_finished
    await asyncio.gather(*futures)
  File "/Users/arkievdsouza/git/pydra/pydra/engine/submitter.py", line 251, in expand_workflow
    task_futures = await self.worker.fetch_finished(task_futures)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/arkievdsouza/git/pydra/pydra/engine/core.py", line 1339, in _run_task
    await submitter.expand_workflow(self, rerun=rerun)
  File "/Users/arkievdsouza/git/pydra/pydra/engine/core.py", line 1310, in _run
    await self._run_task(submitter, rerun=rerun)
  File "/Users/arkievdsouza/git/pydra/pydra/engine/submitter.py", line 84, in submit_from_call
    await runnable._run(self, rerun=rerun)
  File "/Users/arkievdsouza/git/pydra/pydra/engine/submitter.py", line 55, in __call__
    self.loop.run_until_complete(
  File "/Users/arkievdsouza/git/pydra/pydra/engine/core.py", line 461, in __call__
    res = sub(self, environment=environment)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/arkievdsouza/git/t1-pipeline/T1_ProcessingPipeline_v1.py", line 347, in <module>
    result = wf(
             ^^^
fileformats.core.exceptions.FormatMismatchError: Path that matches extension of <class 'fileformats.generic.File'>, "/Users/arkievdsouza/git/t1-pipeline/working-dir/T1_ProcessingPipeline_v1_testing/FivettGen_Hsvs_5f85384fd0f3e0fbe00ce520baf7fd25", is a directory not a file