Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Klaus Zimmermann
climix
Commits
1e50fe1d
Commit
1e50fe1d
authored
Feb 19, 2020
by
Klaus Zimmermann
Browse files
Remove formatting for all `standard_name`s (fixes #167)
parent
570bebef
Changes
1
Hide whitespace changes
Inline
Side-by-side
climix/metadata.py
View file @
1e50fe1d
...
...
@@ -54,8 +54,8 @@ class OutputVariable:
def
instantiate
(
self
,
parameters
):
return
OutputVariable
(
format_var_name
(
self
.
var_name
,
parameters
),
self
.
standard_name
.
format
(
**
parameters
)
,
self
.
proposed_standard_name
.
format
(
**
parameters
)
,
self
.
standard_name
,
self
.
proposed_standard_name
,
self
.
long_name
.
format
(
**
parameters
),
self
.
units
,
self
.
cell_methods
)
...
...
@@ -71,8 +71,9 @@ class InputVariable:
def
instantiate
(
self
,
parameters
):
return
InputVariable
(
format_var_name
(
self
.
var_name
,
parameters
),
self
.
standard_name
.
format
(
**
parameters
),
self
.
cell_methods
,
self
.
aliases
)
self
.
standard_name
,
self
.
cell_methods
,
self
.
aliases
)
def
build_variable
(
name
,
variable
,
path
):
...
...
@@ -121,7 +122,7 @@ class ParameterQuantity:
ln
=
ln
.
format
(
**
parameters
)
param
=
ParameterQuantity
(
format_var_name
(
self
.
var_name
,
parameters
),
self
.
standard_name
.
format
(
**
parameters
)
,
self
.
standard_name
,
data
,
self
.
units
,
ln
)
...
...
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