Skip to content

[NET-229] Both Benjamini corrections causing errors#80

Merged
pollaro merged 1 commit intodevelopmentfrom
NET229_benjamini
Nov 5, 2024
Merged

[NET-229] Both Benjamini corrections causing errors#80
pollaro merged 1 commit intodevelopmentfrom
NET229_benjamini

Conversation

@pollaro
Copy link
Copy Markdown
Collaborator

@pollaro pollaro commented Nov 5, 2024

There were a couple of errors.

The first is that if p_value_max = 0, the colorbar tries to create a scale from [1 1 1]. This is a colormap consisting of white. Nothing else. This will error when trying to calculate the spread of top to bottom. The scale is easy 1 -> 1. That's a scale of length 0, so we'll get NaN for the min and max. That's the error. Put a conditional in to assign 0 to the max and min scale if this is the situation.

Second error is much the same. Normally we have something like P < 0.05 in the title. If there's no scale, that means there's no data, so P = 0

Finally, in a related issue, NET-234, the title is appending itself instead of re-initializing. Just added a clear before the title is assigned.

@pollaro pollaro merged commit f15edc8 into development Nov 5, 2024
@pollaro pollaro deleted the NET229_benjamini branch November 7, 2024 18:46
pollaro added a commit that referenced this pull request Mar 25, 2025
added conditional for pmax is zero. clear out obj.title to fix repeating
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