-
Notifications
You must be signed in to change notification settings - Fork 18
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
👌 Make PreProcessingPipeline methods return a new instance #1263
👌 Make PreProcessingPipeline methods return a new instance #1263
Conversation
This changes the behaviour to be closer to how pandas or xarray work and prevents accidental state changes in the pipeline
Sourcery Code Quality Report❌ Merging this PR will decrease code quality in the affected files by 0.16%.
Here are some functions in these files that still need a tune-up:
Legend and ExplanationThe emojis denote the absolute quality of the code:
The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request. Please see our documentation here for details on how these metrics are calculated. We are actively working on this report - lots more documentation and extra metrics to come! Help us improve this quality report! |
Benchmark is done. Checkout the benchmark result page. Benchmark diff v0.6.0 vs. mainParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
Benchmark diff main vs. PRParametrized benchmark signatures: BenchmarkOptimize.time_optimize(index_dependent, grouped, weight)
|
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1263 +/- ##
=======================================
- Coverage 88.4% 88.4% -0.1%
=======================================
Files 107 107
Lines 5151 5147 -4
Branches 854 854
=======================================
- Hits 4554 4550 -4
Misses 479 479
Partials 118 118
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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 good to me.
This changes the behavior of methods on
PreProcessingPipeline
to be closer to howpandas
orxarray
work (object creation instead of in place mutation), which makes it more intuitive and prevents accidental state changes in the pipeline (e.g. executing a cell in a notebook that does not include the instantiation multiple times).Change summary
Checklist