Skip to content

Change the numpy prod to math prod to fix typing - #92

Closed
MattRoyle wants to merge 1 commit into
nion-software:masterfrom
MattRoyle:numpy-fixes
Closed

MattRoyle wants to merge 1 commit into
nion-software:masterfrom
MattRoyle:numpy-fixes

Conversation

@MattRoyle

Copy link
Copy Markdown
Contributor

The update to numpy broke the type checks similar to nion-software/nionswift#1884.
The error by mypy was

nion\eels_analysis\BackgroundModel.py:124: error: Value of type variable "ShapeT" of "reshape" cannot be "tuple[float64, Any]"  [type-var]

The numpy.prod was broad so I changed it to the math.prod instead.

@MattRoyle MattRoyle self-assigned this Jun 23, 2026
@MattRoyle
MattRoyle requested review from KRLango and Tiomat85 June 23, 2026 14:56
@MattRoyle

Copy link
Copy Markdown
Contributor Author

Closing as fixed by 4d02d13

@MattRoyle MattRoyle closed this Jun 23, 2026
@MattRoyle
MattRoyle deleted the numpy-fixes branch June 23, 2026 15:41
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.

1 participant