Skip to content

ENH: CoW Replace #50618

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

Closed
wants to merge 9 commits into from
Closed

ENH: CoW Replace #50618

wants to merge 9 commits into from

Conversation

lithomas1
Copy link
Member

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

Sits on top of #50148. (will rebase afterwards).

@lithomas1 lithomas1 closed this Jan 7, 2023
@lithomas1 lithomas1 reopened this Jan 7, 2023
@lithomas1 lithomas1 changed the title WIP: CoW Replace ENH: CoW Replace Jan 12, 2023
@lithomas1
Copy link
Member Author

@phofl I think I got this to work now, let me know if this approach is correct.

@lithomas1 lithomas1 marked this pull request as ready for review January 14, 2023 05:14
blk.set_inplace(blk_locs, value_getitem(val_locs), copy=True)
self._clear_reference_block(blkno_l)
leftover_blocks = tuple(blk.delete(blk_locs))
vals = np.broadcast_to(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If new_block_2d doesn't copy vals, will need to make a copy since output of np.broadcast_to isn't writable.

@lithomas1 lithomas1 closed this Jan 14, 2023
@lithomas1 lithomas1 deleted the enh-cow-replace branch March 14, 2023 12:16
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.

1 participant