-
Notifications
You must be signed in to change notification settings - Fork 216
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
ENH: Added allow_superseded
kwargs to TransformerGroup
#1269
Conversation
@pytest.mark.parametrize( | ||
"from_crs, to_crs, allow_superseded, expected_num_transformers", | ||
[ | ||
(6319, 5703, 0, 2), | ||
(6319, 5703, False, 2), | ||
(6319, 5703, True, 3), | ||
(6319, 5703, 123456789, 3), | ||
(6319, 5703, "blah", 3), | ||
], | ||
) | ||
def test_transformer_group_allow_superseded_filter( | ||
from_crs, to_crs, allow_superseded, expected_num_transformers | ||
): | ||
group = TransformerGroup(from_crs, to_crs, allow_superseded=allow_superseded) | ||
assert len(group.transformers) == expected_num_transformers |
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.
This exercises the case from issue #1261.
0e6eca4
to
b31f272
Compare
Codecov Report
@@ Coverage Diff @@
## main #1269 +/- ##
=======================================
Coverage 96.40% 96.40%
=======================================
Files 20 20
Lines 1810 1810
=======================================
Hits 1745 1745
Misses 65 65
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
This is looking good. @dmahr1, |
@snowman2 I was thinking of leaving the What do you think? |
I recommend adding the option to the |
allow_superseded
kwargs to Transformer.from_crs
and TransformerGroup
allow_superseded
kwargs to TransformerGroup
@snowman2 Ah, I must have misunderstood earlier, I assumed that the allow_superseded was already available for |
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.
Nice work 👍
history.rst
for all changes andapi/*.rst
for new API