Skip to content
Snippets Groups Projects

Optimize boolean indexing in CircularResistiveWall

Merged Keon Hee KIM requested to merge optimize_indices_CircularResistiveWall into develop

This merge request includes minor optimizations for the LongitudinalWakeFunction and TransverseWakeFunction:

  1. Removed "if np.any(idx2):"
    • In the LongitudinalWakeFunction, the condition if np.any(idx2): has been removed. The subsequent assignment wl[idx2] = 3 * factor / 2 inherently affects only where idx2 is True, making the conditional check redundant.
  2. Removed "np.logical_not", "np.logical_or" and reduced redundant boolean indexing
    • np.logical_not, np.logical_or and redundant indexing have been removed, streamlining the indexing process and slightly improving code efficiency.
Edited by Keon Hee KIM

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading