Skip to content

Conversation

@ax3l
Copy link
Member

@ax3l ax3l commented Oct 15, 2025

Follow-up to #1182:

@ax3l ax3l added component: elements Elements/external fields component: python Python bindings labels Oct 15, 2025
@ax3l ax3l changed the title Topic lattice select position Element Selection Syntax: Position Oct 15, 2025
@ax3l ax3l mentioned this pull request Oct 15, 2025
2 tasks

def test_position_filtering():
"""Test position-based filtering with s parameter."""
import impactx

Check notice

Code scanning / CodeQL

Module is imported with 'import' and 'import from' Note test

Module 'impactx' is imported with both 'import' and 'import from'.
Filter by overlapping position range.
@ax3l ax3l force-pushed the topic-lattice-select-position branch from e081da7 to 94054fa Compare October 20, 2025 22:30
ax3l added 2 commits October 20, 2025 15:49
Implement a second-order, iterative Kahan–Babuška algorithm
after Wikipedia
sum_val = 0.0
cs = 0.0 # first-order compensation for lost low-order bits
ccs = 0.0 # second-order compensation for further lost bits
c = 0.0 # temporary variable for first-order compensation

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'c' is unnecessary as it is
redefined
before this value is used.
This assignment to 'c' is unnecessary as it is
redefined
before this value is used.
cs = 0.0 # first-order compensation for lost low-order bits
ccs = 0.0 # second-order compensation for further lost bits
c = 0.0 # temporary variable for first-order compensation
cc = 0.0 # temporary variable for second-order compensation

Check warning

Code scanning / CodeQL

Variable defined multiple times Warning

This assignment to 'cc' is unnecessary as it is
redefined
before this value is used.
This assignment to 'cc' is unnecessary as it is
redefined
before this value is used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: elements Elements/external fields component: python Python bindings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant