Skip to content

Fix differential-phase mask arguments and expand ionosphere test coverage - #412

Merged
oberonia78 merged 5 commits into
isce-framework:developfrom
oberonia78:missing_input_ionosphere
Oct 7, 2026
Merged

oberonia78 merged 5 commits into
isce-framework:developfrom
oberonia78:missing_input_ionosphere

Conversation

@oberonia78

Copy link
Copy Markdown
Contributor

The main_diff_low_high_subband workflow omitted the required first_valid_mask_paths and second_valid_mask_paths arguments when calling compute_differential_phase(), causing a TypeError.

This PR supplies the polarization-specific validity-mask paths, fallback subswath-mask paths, and masking flag. When masking is enabled, each input uses validDataMask when available and falls back to the shared mask otherwise.

The test updates:

  • Extend workflow smoke tests to all four ionosphere methods and remove duplicate tests.

@hfattahi hfattahi added this to the R05.03.2 milestone Oct 6, 2026
Comment on lines +1014 to +1017
first_mask_path = f"{dest_freq_path}/interferogram/mask"
second_data_path = first_data_path
second_mask_path = f"{dest_freq_path}/interferogram/mask"
second_valid_mask_paths = first_valid_mask_paths

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
first_mask_path = f"{dest_freq_path}/interferogram/mask"
second_data_path = first_data_path
second_mask_path = f"{dest_freq_path}/interferogram/mask"
second_valid_mask_paths = first_valid_mask_paths
first_mask_path = f"{dest_freq_path}/interferogram/mask"
second_data_path = first_data_path
second_mask_path = first_mask_path
second_valid_mask_paths = first_valid_mask_paths

@bhawkins bhawkins left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

("ionosphere_main_side_test.yaml", "main_diff_ms_band"),
],
)
def test_ionosphere_run(yaml_name, method, tmp_path, monkeypatch):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How are tmp_path and monkeypatch populated? I don't see them in the parameter list.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tmp_path and monkeypatch are built-in pytest fixtures.

@xhuang-jpl xhuang-jpl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @oberonia78

@oberonia78
oberonia78 merged commit 3899265 into isce-framework:develop Oct 7, 2026
9 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.

4 participants