Skip to content

BF: Fixed Mouse.getPos() returning float64 typed objects instead of float#7462

Merged
TEParsons merged 6 commits intopsychopy:releasefrom
mdcutone:release-bf-mouse-coord-float64
Nov 26, 2025
Merged

BF: Fixed Mouse.getPos() returning float64 typed objects instead of float#7462
TEParsons merged 6 commits intopsychopy:releasefrom
mdcutone:release-bf-mouse-coord-float64

Conversation

@mdcutone
Copy link
Copy Markdown
Member

@mdcutone mdcutone commented Nov 5, 2025

Mouse coordinates are now once again returned as builtin Python float types instead of NumPy float64 objects. This mainly affected how values were written to the data file, appearing as np.float64(<value>) instead of just the value.

@mdcutone mdcutone requested a review from TEParsons November 5, 2025 19:05
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.01%. Comparing base (2ea434c) to head (2074a50).
⚠️ Report is 22 commits behind head on release.

Additional details and impacted files
@@             Coverage Diff             @@
##           release    #7462      +/-   ##
===========================================
- Coverage    49.01%   49.01%   -0.01%     
===========================================
  Files          352      352              
  Lines        64531    64552      +21     
===========================================
+ Hits         31633    31638       +5     
- Misses       32898    32914      +16     
Components Coverage Δ
app ∅ <ø> (∅)
boilerplate ∅ <ø> (∅)
library ∅ <ø> (∅)
vm-safe library ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@TEParsons TEParsons left a comment

Choose a reason for hiding this comment

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

From the error messages in the test suite, I think you need to catch when self.lastPos is None

@mdcutone
Copy link
Copy Markdown
Member Author

Seems like the tests assume that they're getting numpy objects by performing vectorized math on them, I'll need to update all those now

@TEParsons TEParsons merged commit ff499f6 into psychopy:release Nov 26, 2025
3 checks passed
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