Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Sherlockk-23
Copy link
Contributor

Fix parameter name conflicts with built-in functions in preprocess.py

πŸ› Problem

The welch_spectrum function uses parameter names min and max which shadow Python's built-in functions, causing TypeError: 'int' object is not callable when trying to use max() inside the functions.

πŸ”§ Solution

  • Renamed function from max to np.maximun, as did in the get_hr function in the same file.

@McJackTang McJackTang merged commit b7ed20c into thuhci:main Sep 21, 2025
4 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