Skip to content

Commit

Permalink
Merge pull request #1 from brews/validation_cruft
Browse files Browse the repository at this point in the history
Remove cruft validation, catalog, DTR parameter checking stuff
  • Loading branch information
brews authored Mar 2, 2022
2 parents 9300daa + 69e4c27 commit 36eaf1a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 131 deletions.
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.

0 comments on commit 36eaf1a

Please sign in to comment.