Skip to content

Conversation

mgxd
Copy link
Member

@mgxd mgxd commented May 17, 2018

Fixes #2580 .

Changes proposed in this pull request

  • extend max_sh input to accept/format lists as well as int

usedefault=True,
argstr='-lmax %s',
desc=('maximum harmonic degree of response function - single value for '
'single-shell response, list for multi-shell response'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be a MultiObject?

max_sh = InputMultiObject(traits.Int, default=8, usedefault=True, argstr='-lmax %d', sep=',')

I think you can keep the same doctest.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was my inital thought, but it looks like InputMultiPath/Object doesn't allow for defaults

In [2]: x.inputs.max_sh
Out[2]: []

@effigies
Copy link
Member

effigies commented May 17, 2018 via email

@mgxd mgxd closed this May 17, 2018
@mgxd mgxd deleted the fix/response branch May 17, 2018 20:44
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

Successfully merging this pull request may close these issues.

2 participants