Commit 28e7deb9 authored by Clément Haëck's avatar Clément Haëck
Browse files

Set default open_mfdataset kwargs

Hardcode it in lib/__init__
parent dc209e1b
...@@ -195,7 +195,7 @@ h1 span, h2 span, h3 span, h4 span, h5 span, h6 span { ...@@ -195,7 +195,7 @@ h1 span, h2 span, h3 span, h4 span, h5 span, h6 span {
a { a {
text-decoration: none; text-decoration: none;
color: #57d; /* TODO: Find a better colour for this. */ color: #57d;
} }
a:hover { a:hover {
......
...@@ -59,6 +59,7 @@ def _fixes_as_dict(fixes: List[str]): ...@@ -59,6 +59,7 @@ def _fixes_as_dict(fixes: List[str]):
return {k: v for k, v in fixes} return {k: v for k, v in fixes}
# Set default fixes
if 'fixes' in DEFAULTS: if 'fixes' in DEFAULTS:
d = DEFAULTS['fixes'].split() d = DEFAULTS['fixes'].split()
if len(d) % 2 != 0: if len(d) % 2 != 0:
...@@ -68,6 +69,11 @@ if 'fixes' in DEFAULTS: ...@@ -68,6 +69,11 @@ if 'fixes' in DEFAULTS:
DEFAULTS_TYPES['fixes'] = dict DEFAULTS_TYPES['fixes'] = dict
# Set default open_mfdataset kwargs
DEFAULTS['open_mf_kw'] = dict()
DEFAULTS_TYPES['open_mf_kw'] = dict
def check_output_dir(odir, log=None, file=False): def check_output_dir(odir, log=None, file=False):
"""Check if directory exists, if not create it. """Check if directory exists, if not create it.
......
Markdown is supported
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