Skip to content

Conversation

@paddyroddy
Copy link
Member

Description

Split up the positions_from_delta function. The function is doing too much and is cumbersome to test. We've also noticed that it regularly fails the benchmarking. This will take some work to get to something we are happy with. This first step creates some internal functions that can be individually tested.

Closes: #947

Checks

  • Is your code passing linting?
  • Is your code passing tests?
  • Have you added additional tests (if required)?
  • Have you modified/extended the documentation (if required)?
  • Have you added a one-liner changelog entry above (if required)?

@paddyroddy paddyroddy self-assigned this Jan 6, 2026
@paddyroddy paddyroddy added enhancement New feature or request maintenance Maintenance: refactoring, typos, etc. science Science improvement or question testing Work is related to testing labels Jan 6, 2026
def assert_equal(actual: AnyArray, desired: AnyArray) -> None:
"""Check if two objects are not equal."""
np.testing.assert_equal(actual, desired)
np.testing.assert_equal(np.asarray(actual), np.asarray(desired))
Copy link
Member Author

Choose a reason for hiding this comment

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

Run into issues comparing non-NumPy arrays, even though they look the same

@paddyroddy paddyroddy changed the base branch from main to paddy/issue-961 January 12, 2026 18:17
Base automatically changed from paddy/issue-961 to main January 15, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request maintenance Maintenance: refactoring, typos, etc. science Science improvement or question testing Work is related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create internal functions and keep the original positions_from_delta

2 participants