Skip to content

Commit

Permalink
updated title and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed May 15, 2017
1 parent 81bf526 commit 6284e84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hummingbird/processes/wps_cfchecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@


def cf_check(nc_file, version):
# TODO: maybe use local file path
# TODO: avoid downloading of cf table for each check (see pypi page)
LOGGER.debug("checking %s", os.path.basename(nc_file))
if not nc_file.endswith(".nc"):
new_name = nc_file + ".nc"
os.rename(nc_file, new_name)
Expand All @@ -22,15 +22,15 @@ def cf_check(nc_file, version):
try:
cf_report = check_output(cmd)
except CalledProcessError as err:
LOGGER.exception("cfchecks failed!")
LOGGER.warn("cfchecks failed!")
cf_report = err.output
return cf_report


class CFChecker(Process):
def __init__(self):
inputs = [
ComplexInput('dataset', 'NetCDF File',
ComplexInput('dataset', 'Dataset',
abstract='You may provide a URL or upload a NetCDF file.',
metadata=[Metadata('Info')],
min_occurs=0,
Expand Down

0 comments on commit 6284e84

Please sign in to comment.