Skip to content

Reject reversed linear integration bounds - #5404

Merged
FlorianPfaff merged 1 commit into
mainfrom
chatgpt/fix-reversed-linear-integration-bounds
Aug 23, 2026
Merged

Reject reversed linear integration bounds#5404
FlorianPfaff merged 1 commit into
mainfrom
chatgpt/fix-reversed-linear-integration-bounds

Conversation

@FlorianPfaff

Copy link
Copy Markdown
Owner

Summary

  • reject Euclidean integration intervals where any lower bound exceeds its upper bound
  • apply the validation in the shared static integration helper so instance and direct helper calls behave consistently
  • add regression coverage for scalar 1-D, multidimensional, and direct helper usage

Why

SciPy treats reversed integration limits as signed integrals. For probability densities this can silently return negative probability mass instead of reporting an invalid interval.

Scope

Two files only; no behavior changes for valid or zero-width intervals.

@FlorianPfaff
FlorianPfaff enabled auto-merge (squash) August 23, 2026 07:32
@github-actions

Copy link
Copy Markdown
Contributor

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Max errors Warnings Elapsed time
✅ COPYPASTE jscpd yes no no 5.54s
✅ JSON prettier 7 0 0 0 0.55s
✅ JSON v8r 7 0 0 3.58s
✅ MARKDOWN markdownlint 68 0 0 0 2.19s
✅ MARKDOWN markdown-table-formatter 68 0 0 0 0.45s
✅ PYTHON black 2012 26 0 0 48.29s
✅ PYTHON isort 2012 42 0 0 2.09s
✅ REPOSITORY betterleaks yes no no 1.21s
✅ REPOSITORY checkov yes no no 25.97s
✅ REPOSITORY git_diff yes no no 0.18s
✅ REPOSITORY secretlint yes no no 76.65s
✅ REPOSITORY syft yes no no 2.06s
✅ REPOSITORY trivy-sbom yes no no 2.15s
✅ YAML prettier 11 0 0 0 0.42s
✅ YAML v8r 11 0 0 11.45s
✅ YAML yamllint 11 0 0 0.8s

Notices

⚠️ Your configuration references items that have been removed from MegaLinter and are ignored: MAKEFILE_CHECKMAKE. See Removed linters to find their replacements.

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx mega-linter-runner@10.0.0 --custom-flavor-setup --custom-flavor-linters PYTHON_BLACK,PYTHON_ISORT,COPYPASTE_JSCPD,JSON_V8R,JSON_PRETTIER,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_CHECKOV,REPOSITORY_GIT_DIFF,REPOSITORY_BETTERLEAKS,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY_SBOM,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

MegaLinter is provided by OX Security
Show us your support by starring ⭐ the repository

@FlorianPfaff
FlorianPfaff force-pushed the chatgpt/fix-reversed-linear-integration-bounds branch from 347f36f to 2124ab9 Compare August 23, 2026 16:43
@FlorianPfaff
FlorianPfaff merged commit 75b3b0b into main Aug 23, 2026
13 of 23 checks passed
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