Skip to content

sorted list of exec nodes? #1404

Closed
Closed
@alexsavio

Description

@alexsavio

Hi,

Why do you use sorted in this line?
https://github.com/nipy/nipype/blob/master/nipype%2Fpipeline%2Fengine%2Fworkflows.py#L693

If I use a connect with an auxiliary function, e.g.:
(params, stc, [(("slice_order", sum_one), "slice_order"),]),

I get this error:
TypeError('unorderable types: tuple() < str()',)

Can't sort tuples against strings.

I removed the sorted because it doesn't make sense here and it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions