Hi all,
I just discovered that when setting ref_batch to an integer (e.g. ref_batch=111), the function throws an error:
"module 'numpy' has no attribute 'int'. np.int was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself."
After inspecting the neuroCombat.py file, I found that changing np.int to int on line 102 resolves the issue.
To fix the bug, I simply uninstalled the existing neuroCombat and imported the updated neuroCombat.py containing this change.
Best wishes,
Mengxia
Hi all,
I just discovered that when setting ref_batch to an integer (e.g. ref_batch=111), the function throws an error:
"module 'numpy' has no attribute 'int'. np.int was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself."
After inspecting the neuroCombat.py file, I found that changing np.int to int on line 102 resolves the issue.
To fix the bug, I simply uninstalled the existing neuroCombat and imported the updated neuroCombat.py containing this change.
Best wishes,
Mengxia