Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Clément Haëck
submeso-color
Commits
28e7deb9
Commit
28e7deb9
authored
Mar 29, 2022
by
Clément Haëck
Browse files
Set default open_mfdataset kwargs
Hardcode it in lib/__init__
parent
dc209e1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
docs/stylesheet.css
docs/stylesheet.css
+1
-1
lib/__init__.py
lib/__init__.py
+6
-0
No files found.
docs/stylesheet.css
View file @
28e7deb9
...
@@ -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
{
...
...
lib/__init__.py
View file @
28e7deb9
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment