Skip to content

fix: pass minmax to compute_2d_mutual_info and compute_1d_mutual_info#67

Merged
dlevenstein merged 1 commit intomainfrom
dev-andrea-sifix
Mar 20, 2026
Merged

fix: pass minmax to compute_2d_mutual_info and compute_1d_mutual_info#67
dlevenstein merged 1 commit intomainfrom
dev-andrea-sifix

Conversation

@acumpelik
Copy link
Copy Markdown
Contributor

SI was computed without minmax being passed, causing incorrect spatial information values. This fix passes minmax from env.get_map_bins() and env.get_HD_bins() to all nap.compute_2d_mutual_info and nap.compute_1d_mutual_info calls.

SI was computed without minmax, causing incorrect spatial information
values. Pass the minmax from env.get_map_bins() and env.get_HD_bins()
to all nap.compute_2d_mutual_info and nap.compute_1d_mutual_info calls.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dlevenstein
Copy link
Copy Markdown
Member

thanks! @copilot could you double check if this error is happening anywhere else in the repo (any other compute_2d_mutual_info calls e.g. in analyses?)?

Copy link
Copy Markdown

Copilot AI commented Mar 20, 2026

@dlevenstein I've opened a new pull request, #68, to work on those changes. Once the pull request is ready, I'll request review from you.

@dlevenstein dlevenstein merged commit db58f2b into main Mar 20, 2026
@dlevenstein dlevenstein deleted the dev-andrea-sifix branch March 20, 2026 15:37
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.

3 participants