Skip to content

Conversation

@lithomas1
Copy link
Contributor

  • 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
Contributor 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
Contributor 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