Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
arkiev opened this issue Mar 4, 2024 · 0 comments
Open

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

arkiev opened this issue Mar 4, 2024 · 0 comments
Assignees
Labels
bug Something isn't working pipelines

Comments

@arkiev
Copy link

arkiev commented Mar 4, 2024

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

@arkiev arkiev added bug Something isn't working pipelines labels Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pipelines
Projects
Status: No status
Development

No branches or pull requests

2 participants