Skip to content

Fix parameter order mismatch in site_diversity_rain_outage_probability (closes #86)#101

Merged
inigodelportillo merged 2 commits intomasterfrom
fix/issue-86
Mar 2, 2026
Merged

Fix parameter order mismatch in site_diversity_rain_outage_probability (closes #86)#101
inigodelportillo merged 2 commits intomasterfrom
fix/issue-86

Conversation

@inigodelportillo
Copy link
Copy Markdown
Owner

Summary

Fixes a parameter order mismatch bug in site_diversity_rain_outage_probability where elevation angles el1/el2 were placed after f in the _ITU618_13 method signature, inconsistent with the public API and __model wrapper. The public function call also passed arguments to __model in the wrong order.

This bug could cause incorrect calculations when the two sites have different elevation angles.

Closes #86

Changes

  • Fixed _ITU618_13.site_diversity_rain_outage_probability parameter order to match public API: lat1, lon1, a1, el1, lat2, lon2, a2, el2, f, tau, hs1, hs2
  • Fixed public function call to pass arguments in the correct order to __model
  • Added comprehensive regression tests with asymmetric cases to guard against reintroduction of the bug

Test plan

  • Run test suite: python3 -m unittest test.ITU_validation_test.ITUR618_13TestCase.test_site_diversity_regression
  • Verify function produces correct results with various elevation angle combinations
  • Ensure no regression in other ITU-618 functions

🤖 Generated with Claude Code

inigodelportillo and others added 2 commits March 2, 2026 17:24
…y (ITU-618)

The elevation angles el1/el2 were placed after f in _ITU618_13's method
signature, inconsistent with the public API and __model wrapper. The
public function call also passed args in the wrong order to __model.

Fixes #86

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…#86)

Adds test_site_diversity_regression to ITUR618_13TestCase covering:
- Symmetric and asymmetric attenuation threshold cases
- A swap check that confirms el1/el2 are correctly bound to their
  respective stations, guarding against reintroduction of the
  parameter order bug fixed in issue #86

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@inigodelportillo inigodelportillo merged commit eb02971 into master Mar 2, 2026
6 checks passed
@inigodelportillo inigodelportillo deleted the fix/issue-86 branch March 2, 2026 22:28
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.

itur 618 - side diversity - order of function parameters may cause error

1 participant