Skip to content

Suppress numpy-warning if signal counts are zero.#8

Open
insalt-glitch wants to merge 1 commit intoOceanOptics:masterfrom
insalt-glitch:zero_counts
Open

Suppress numpy-warning if signal counts are zero.#8
insalt-glitch wants to merge 1 commit intoOceanOptics:masterfrom
insalt-glitch:zero_counts

Conversation

@insalt-glitch
Copy link
Copy Markdown
Contributor

Numpy emits a warning message for log(0) since it is mathematically ill-defined. This PR suppresses this warning. For the value, we can rely in the IEEE 754 specification (p. 62), i.e. log(0) = -inf.

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