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

Remove cruft validation, catalog, DTR parameter checking stuff #1

Merged
merged 1 commit into from
Mar 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/dearprudence/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,3 @@ class Cmip6CatalogNoEntriesError(Cmip6CatalogError):
"""Raised when Cmip6Record has no matching CMIP6 catalog entries"""

pass


class ParameterFileValidationError(Exception):
"""Raised when run parameters do not validate"""

pass


class ParameterFileValidationWarning(UserWarning):
"""Warning used when run parameters do not validate"""

pass
18 changes: 0 additions & 18 deletions src/dearprudence/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,3 @@ def cmip6_catalog_has(x, datastore=None):
raise Cmip6CatalogNoEntriesError(f"Found no entries for {x}, expected 1")

return True


def check_simplerun_data_exists(r):
"""
Check that input data for SimpleRun exists in CMIP6 catalog
"""
cmip6_catalog_has(r.ssp)
cmip6_catalog_has(r.historical)
return True


def check_dtr_data_exists(r):
"""
Check that input data for DTR exists in CMIP6 catalog
"""
check_simplerun_data_exists(r.tasmin)
check_simplerun_data_exists(r.tasmax)
return True
101 changes: 0 additions & 101 deletions src/dearprudence/validation.py

This file was deleted.