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

adding readonly input fields to the input_spec #49

Open
djarecka opened this issue May 10, 2023 · 0 comments
Open

adding readonly input fields to the input_spec #49

djarecka opened this issue May 10, 2023 · 0 comments

Comments

@djarecka
Copy link
Contributor

  • allowing to add a completely new input fields as a part of inputs_metadata. This can be useful when complicated xor structure is required by the tool. Example would be fslroi that has three different option:
fslroi <input> <output> <xmin> <xsize> <ymin> <ysize> <zmin> <zsize>
fslroi <input> <output> <tmin> <tsize>
fslroi <input> <output> <xmin> <xsize> <ymin> <ysize> <zmin> <zsize> <tmin> <tsize>

Nipype has some xor structure that doesn't fully cover all usecases, see here.

In pydra we could probably handle this by adding readonly arguments like this:

  inputs_metadata:
    x-z_range:
      readonly: True
      argstr: "{x_min} {x_size} {y_min} {y_size} {z_min} {z_size}"
      requires: [x_min, x_size, y_min, y_size, z_min, z_size]
      position: 2

    t_range:
      readonly: True
      argstr: "{t_min} {t_size}"
      requires: [t_min, t_size]
      position: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant