Skip to content

Replace SRF dataset check in gaseous_correction.py#1

Merged
fsteinmetz merged 1 commit intohygeos:mainfrom
CameronLP:patch-1
Feb 16, 2026
Merged

Replace SRF dataset check in gaseous_correction.py#1
fsteinmetz merged 1 commit intohygeos:mainfrom
CameronLP:patch-1

Conversation

@CameronLP
Copy link
Copy Markdown
Contributor

Replace SRF check in Gas_correction_O3 class init function in gaseous_correction.py. In Polymer, the SRF dataset is initialized as an empty xr.Dataset if sensor SRFs are not provided. The current check if srf is not None: reaches the assert statement even if there is an empty SRF dataset and results in an Exception. This commit updates the check to be the same as the one in Gas_correction_O3() on line 222.

Replace SRF check in Gas_correction_O3 class init function in gaseous_correction.py. In Polymer, the SRF dataset is initialized as an empty xr.Dataset if sensor SRFs are not provided. The current check `if srf is not None:` reaches the assert statement even if there is an empty SRF dataset and results in an Exception. This commit updates the check to be the same as the one in Gas_correction_O3() on line 222.
@fsteinmetz fsteinmetz merged commit 7729b45 into hygeos:main Feb 16, 2026
@fsteinmetz
Copy link
Copy Markdown
Contributor

Thanks ! I have merged.

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.

2 participants