Skip to content

GEOPY-2910: reverting changes - introduced slowness#159

Closed
sebhmg wants to merge 2 commits into
release/GA_4.8from
GA-2910_revert_pr_merge
Closed

GEOPY-2910: reverting changes - introduced slowness#159
sebhmg wants to merge 2 commits into
release/GA_4.8from
GA-2910_revert_pr_merge

Conversation

@sebhmg

@sebhmg sebhmg commented Jun 20, 2026

Copy link
Copy Markdown

GEOPY-2910 - Reduce chunking of sensitivities for TEM inversions

Copilot AI review requested due to automatic review settings June 20, 2026 16:12
@sebhmg sebhmg closed this Jun 20, 2026
@sebhmg sebhmg deleted the GA-2910_revert_pr_merge branch June 20, 2026 16:12
@sebhmg

sebhmg commented Jun 20, 2026

Copy link
Copy Markdown
Author

oops, wrong branch name

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to revert and adjust recent sensitivity/Jacobian assembly changes in the Dask TDEM simulation that introduced performance regressions, primarily by changing how field-derivative blocks are accumulated and processed.

Changes:

  • Restores default get_parallel_blocks behavior by removing the explicit optimize=False override.
  • Refactors get_field_deriv_block to operate on per-chunk ATinv derivative arrays (list-of-arrays) instead of a single concatenated matrix, and updates compute_rows to match.
  • Wires a client argument through the field-derivative block computation path (currently unused in the helper).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 167 to 170
for block_ind in range(len(blocks)):

if len(blocks[block_ind]) == 0:
if len(block) == 0:
continue
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.

2 participants