-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
subset_data is broken #2527
Comments
@samsrabin do you want to open a PR to fix this, or should I? Regardless, I could use some help re. testing. |
It's probably best to start a PR with just the testing (which will fail), then add the fix to make sure the test passes. So I'll add myself as assignee here. |
And for my future reference: The solution is to replace zip_pfts = zip(self.dom_pft, self.pct_pft, self.cth, self.cbh) with cth_to_zip = self.cth
if cth_to_zip is None:
cth_to_zip = [None for x in self.dom_pft]
zip_pfts = zip(self.dom_pft, self.pct_pft, cth_to_zip, self.cbh) and do the same thing for |
Revert changes in ba0a3c to ensure testing fails if scalar values provided (before implementing fix). |
Brief summary of bug
subset_data fails for a point when cbh and cth are not given and a dominant pft is defined.
@samsrabin suggested a python fix is pretty straight forward, but we need to also add testing around subset_data.
General bug information
CTSM version you are using: [output of
git describe
]CTSM5.2.001
Does this bug cause significantly incorrect results in the model's science? [Yes / No]
No
Configurations affected: [Fill this in if known.]
Subset data for single point cases
Details of bug
Subset data fails if cbh and cth are not given. This seems to have come in with the PLUMBER2 PR to b4bdev, which introduced information on canopy top and bottom heights.
Important details of your setup / configuration so we can reproduce the bug
The text was updated successfully, but these errors were encountered: