Skip to content

Fix partially wrapped-normal input edge cases#2177

Merged
FlorianPfaff merged 5 commits into
mainfrom
codex/fix-pwn-input-edge-cases-20260523
May 23, 2026
Merged

Fix partially wrapped-normal input edge cases#2177
FlorianPfaff merged 5 commits into
mainfrom
codex/fix-pwn-input-edge-cases-20260523

Conversation

@FlorianPfaff
Copy link
Copy Markdown
Owner

Summary

  • coerce partially wrapped-normal mu, C, query points, and set_mean() inputs to backend arrays before inspecting shapes
  • normalize 1-D query-point inputs consistently, matching the wrapped-normal/hypertoroidal behavior for scalar domains
  • handle bound_dim == 0 without constructing an invalid empty meshgrid
  • fix linear_mean() for fully periodic distributions; self.mu[-0:] previously returned the full state instead of an empty linear component
  • add regression tests for Python sequence inputs, scalar-domain query batches, set_mean() wrapping, and fully periodic linear-component access

Validation

  • connector compare: branch is 3 commits ahead of main, 0 behind
  • changed files are limited to partially_wrapped_normal_distribution.py and its focused tests

Note: I could not run the full test suite locally in this sandbox because direct GitHub checkout is unavailable here; PR CI should run the suite.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 23, 2026

MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ COPYPASTE jscpd yes no no 33.23s
✅ PYTHON black 4 1 0 0 2.02s
✅ PYTHON isort 4 1 0 0 0.55s
✅ REPOSITORY checkov yes no no 30.64s
✅ REPOSITORY gitleaks yes no no 15.68s
✅ REPOSITORY git_diff yes no no 0.05s
✅ REPOSITORY secretlint yes no no 15.35s
✅ REPOSITORY syft yes no no 2.19s
✅ REPOSITORY trivy-sbom yes no no 3.85s
✅ REPOSITORY trufflehog yes no no 22.67s

Notices

📣 MegaLinter 9.5.0 is out! Discover the new features and security recommendations in the release announcement. (Skip this info by defining SECURITY_SUGGESTIONS: false)

See detailed reports in MegaLinter artifacts
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

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

@FlorianPfaff FlorianPfaff enabled auto-merge (squash) May 23, 2026 05:27
@github-actions
Copy link
Copy Markdown
Contributor

Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit 6c7c445.

@FlorianPfaff FlorianPfaff merged commit a2fdc01 into main May 23, 2026
25 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