Skip to content

Set retain_collection_types to True #22

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

Merged
merged 5 commits into from
Oct 19, 2022

Conversation

omar-rifai
Copy link
Contributor

@omar-rifai omar-rifai commented Aug 3, 2022

This prevents attrs.asdict() to change the type of the inputs from set or tuple to list. The default behavior is problematic in the case of spmSegmentation for example where the input tissues has to be a tuple of tuples

@codecov-commenter
Copy link

codecov-commenter commented Aug 3, 2022

Codecov Report

Merging #22 (c1dee12) into main (24dd090) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #22   +/-   ##
=======================================
  Coverage   95.83%   95.83%           
=======================================
  Files           2        2           
  Lines          24       24           
  Branches        4        4           
=======================================
  Hits           23       23           
  Partials        1        1           
Impacted Files Coverage Δ
pydra/tasks/nipype1/utils.py 95.23% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@effigies
Copy link
Contributor

effigies commented Aug 3, 2022

Any chance of a test that can make sure we don't lose this?

@omar-rifai
Copy link
Contributor Author

Any chance of a test that can make sure we don't lose this?

Would something of the sort work? The assert seems a bit hacky, I don't know if that's the correct way to fetch the output.

@omar-rifai
Copy link
Contributor Author

Hi @effigies, is there any chance we can merge and release this?

@effigies
Copy link
Contributor

Thanks, forgot about this.

@effigies effigies merged commit 2ca56bd into nipype:main Oct 19, 2022
@ghisvail ghisvail mentioned this pull request Nov 21, 2022
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.

3 participants