Skip to content
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 deepcopy of Enumerate transform #290

Merged
merged 1 commit into from
Oct 6, 2019

Conversation

bouthilx
Copy link
Member

@bouthilx bouthilx commented Oct 5, 2019

Why:

The vectorized function of Enumerate could not be deepcopyed making it
unusable because of naive algorithm's that requires copying the original
algo.

How:

Overwrite __deepcopy__ the rebuild the Enumerate object instead of
copying it.

@bouthilx bouthilx added bug Indicates an unexpected problem or unintended behavior v0.1.7 labels Oct 5, 2019
@bouthilx bouthilx requested a review from Delaunay October 5, 2019 17:58
Why:

The vectorized function of Enumerate could not be `deepcopy`ed making it
unusable because of naive algorithm's that requires copying the original
algo.

How:

Overwrite `__deepcopy__` the rebuild the Enumerate object instead of
copying it.
@codecov-io
Copy link

Codecov Report

Merging #290 into develop will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #290      +/-   ##
===========================================
+ Coverage    93.34%   93.35%   +0.01%     
===========================================
  Files          120      120              
  Lines        14788    14814      +26     
  Branches      1010     1010              
===========================================
+ Hits         13804    13830      +26     
  Misses         882      882              
  Partials       102      102
Impacted Files Coverage Δ
src/orion/core/worker/transformer.py 97.18% <100%> (+0.02%) ⬆️
tests/unittests/core/test_transformer.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 31b8e1b...9b9944f. Read the comment docs.

@bouthilx bouthilx merged commit 591060b into Epistimio:develop Oct 6, 2019
@bouthilx
Copy link
Member Author

bouthilx commented Oct 8, 2019

@bouthilx bouthilx mentioned this pull request Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior v0.1.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants