-
Notifications
You must be signed in to change notification settings - Fork 532
FIX: Permit identity transforms in list of transforms given to ants.ApplyTransforms #3237
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
FIX: Permit identity transforms in list of transforms given to ants.ApplyTransforms #3237
Conversation
2310ecc
to
e30d780
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great
InputMultiPath(File(exists=True)), | ||
"identity", | ||
transforms = InputMultiObject( | ||
traits.Either(File(exists=True), "identity"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the latest releases of traits they are recommending Union instead of Either. I don't know when Union started to be available or when they started to recommend it though. I'm just writing this down and don't think it requires any particular action in this PR (cc @satra)
…nsforms Convert to InputMultiObject while we're at it.
e30d780
to
c729c1c
Compare
Codecov Report
@@ Coverage Diff @@
## maint/1.5.x #3237 +/- ##
===============================================
+ Coverage 64.96% 65.00% +0.03%
===============================================
Files 302 302
Lines 39942 39942
Branches 5282 5282
===============================================
+ Hits 25949 25964 +15
+ Misses 12927 12918 -9
+ Partials 1066 1060 -6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Okay, tests passing. Thanks for having a look. |
Summary
antsApplyTransforms currently permits
identity
or a chain of transformations, but it can be useful to insert anidentity
into a chain.List of changes proposed in this PR (pull-request)
Either(InputMultiObject(File), "identity")
toInputMultiObject(Either(File, "identity"))
.InputMultiPath
toInputMultiObject
throughout the file, in passing.--transform
arguments.Acknowledgment