Skip to content

[Solved] Error when setting ref_batch #33

Description

@MengxiaGAO

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions