Skip to content
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

debug CommonDataModel bug #772

Merged
merged 2 commits into from May 14, 2024
Merged

debug CommonDataModel bug #772

merged 2 commits into from May 14, 2024

Conversation

juliasloan25
Copy link
Member

@juliasloan25 juliasloan25 commented May 8, 2024

Purpose

closes #765

I'm not exactly sure what caused the bug, but in v0.3.6 CommonDataModel's extension of Base.write was changed here. I'm not sure what about this change caused the behavior change, but changing the dataset creation to avoid using write works fine.

Note: buildkite is failing because of a bug in RRTMGP that was fixed in v0.13.2. #738 updates to use that version, so after that's. merged in I'll rebase and merge this PR.

Content

  • re-write dataset truncation to avoid calling NCDatasets.write, which produces a bug as of CommonDataModel v0.3.6
  • rename time_start/time_end -> t_start/t_end for more consistency throughout the code and easier REPL debugging

  • I have read and checked the items on the review checklist.

Copy link
Collaborator

@LenkaNovak LenkaNovak left a comment

Choose a reason for hiding this comment

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

LGTM, @juliasloan25. Just a quick comment on how to generalize the truncation to other than 3D datasets. After fixing the paths for the CI runs and double checking the visualized output is the same as on main, then feel free to merge.

test/regridder_tests.jl Outdated Show resolved Hide resolved
src/Regridder.jl Outdated Show resolved Hide resolved
Copy link
Contributor

@anastasia-popova anastasia-popova left a comment

Choose a reason for hiding this comment

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

This looks good! Thank you for tackling this

@juliasloan25 juliasloan25 merged commit e323940 into main May 14, 2024
9 checks passed
@juliasloan25 juliasloan25 deleted the js/common-data branch May 14, 2024 22:35
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.

Fix discrepancy in CommonDataModel package version errors
3 participants