Skip to content

Remove restrictions on integer input for general maths conversions - #2129

Closed
CoePaul wants to merge 1 commit into
mainfrom
dodal2128
Closed

CoePaul wants to merge 1 commit into
mainfrom
dodal2128

Conversation

@CoePaul

@CoePaul CoePaul commented Jul 21, 2026

Copy link
Copy Markdown
Contributor
  • Conversion functions were previously over-restricted to exclude integer input: Integer input permission is hereby restored and test verified

  • Unhappy path tests widened to cover a few more test cases

Fixes #2128

Instructions to reviewer on how to test:

  1. Check all tests pass on CI
  2. Confirm updates to production code and unit tests are consistent with issue aims

Checks for reviewer

  • Would the PR title make sense to a scientist on a set of release notes
  • If a new device has been added does it follow the standards
  • If changing the API for a pre-existing device, ensure that any beamlines using this device have updated their Bluesky plans accordingly
  • Have the connection tests for the relevant beamline(s) been run via dodal connect ${BEAMLINE}

* Conversion functions were previously over-restricted to exclude
  integer input:  Integer input permission is hereby restored and
  test verified

* Unhappy path tests widened to cover a few more test cases
@CoePaul
CoePaul requested a review from a team as a code owner July 21, 2026 11:56
@CoePaul CoePaul assigned adaudon and CoePaul and unassigned adaudon Jul 21, 2026
@CoePaul
CoePaul requested a review from adaudon July 21, 2026 11:57
@CoePaul CoePaul added the python Pull requests that update Python code label Jul 21, 2026
@CoePaul CoePaul linked an issue Jul 21, 2026 that may be closed by this pull request
@codecov

codecov Bot commented Jul 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.15%. Comparing base (edea41f) to head (49332a8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2129   +/-   ##
=======================================
  Coverage   99.15%   99.15%           
=======================================
  Files         353      353           
  Lines       13793    13793           
=======================================
  Hits        13677    13677           
  Misses        116      116           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@CoePaul CoePaul closed this Jul 21, 2026
@CoePaul

CoePaul commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

Closing as redundant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Correct restrictions on arithmetic conversions in GeneralMaths

2 participants