Skip to content

Output vs Result #820

Open
Open
@djarecka

Description

@djarecka

@tclose - I've been working with pydra this week, and I was having problem on how to get Result object if the task is run in the simplest way as callable. Is it actually possible to get it or I'm able to get only the Output.

This is what I am able to get:

resample = ResampleTask(source_filename=source_file)
output = resample()
resample = ResampleTask(source_filename=source_file)
with Submitter(worker="debug") as sub:
    res=sub(resample)

So the second one gives full Result as expected, but the first only gives output that is equivalent to Result.Output

The problem with this is that we loose the access to many useful informations, e.g., cache_dir, error, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions