Commit d680b424 authored by BorjaEst's avatar BorjaEst
Browse files

Gerund form for log messages

parent 4ec70c4d
......@@ -40,9 +40,9 @@ class Source:
def __init__(self, name, collections): = name
self._models = {}"Load source '%s'","Loading source '%s'",
for name, specifications in collections.items():"Load model '%s'", name)"Loading model '%s'", name)
model = _load_model(**specifications)
if model:
self._models[name] = model
......@@ -63,7 +63,7 @@ class Source:
for model in self._models:
dirname = "{source}_{model}".format(, model=model)
os.makedirs(dirname, exist_ok=True)"Skim data from '%s'", dirname)"Skimming data from '%s'", dirname)
_skim(self[model], delta=groupby)
......@@ -25,7 +25,7 @@ def standardize_tco3(dataset, variable, coordinates):
def rename_coords_vmro3(array, time, plev, lat, lon):
"""Renames a vmro3 array variable and coordinates"""
logger.debug("Rename '{0}' coordinates".format('vmro3_zm'))
logger.debug("Renaming '{0}' coordinates".format('vmro3_zm'))
return array.rename({'time': time, 'plev': plev, 'lat': lat, 'lon': lon})
......@@ -43,7 +43,7 @@ def standardize_vmro3(dataset, variable, coordinates):
def rename_coords_tco3(array, time, lat, lon):
"""Renames a tco3 array variable and coordinates"""
logger.debug("Rename '{0}' coordinates".format('tco3_zm'))
logger.debug("Renaming '{0}' coordinates".format('tco3_zm'))
return array.rename({'time': time, 'lat': lat, 'lon': lon})
......@@ -28,11 +28,11 @@ def cd(newdir):
prevdir = os.getcwd()
logger.debug("Temp dir change to: '%s'", newdir)
logger.debug("Changing directory: '%s'", newdir)
logger.debug("Restore directory: '%s'", prevdir)
logger.debug("Restoring directory: '%s'", prevdir)
def return_on_failure(message, default=None):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment