Skip to content

Commit

Permalink
Merge pull request #180 from brews/tas_validation_max
Browse files Browse the repository at this point in the history
Increase max allowed tasmin, tasmax in services.validate to 377 K for UKESM1-0-LL
  • Loading branch information
brews authored Feb 17, 2022
2 parents cefd4fc + a171082 commit b5358f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- Move in-memory data loading where it is needed for 360-days calendar conversion in clean-cmip6 (PR #179, @emileten)
### Changed
- Increase max allowed tasmin, tasmax in services.validate to 377 K for UKESM1-0-LL. (PR #180, @brews)

## [0.16.2] - 2022-02-15
### Fixed
Expand Down
4 changes: 3 additions & 1 deletion dodola/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,10 @@ def _test_temp_range(ds, var):
"""
Ensure temperature values are in a valid range
"""
# This high 377 K temperature range is to allow UKESM1-0-LL runs, which
# apparently run very hot.
assert (ds[var].min() > 130) and (
ds[var].max() < 360
ds[var].max() < 377
), "{} values are invalid".format(var)


Expand Down

0 comments on commit b5358f1

Please sign in to comment.