Skip to content
Snippets Groups Projects
Commit 5a2dea2a authored by Florian Obersteiner's avatar Florian Obersteiner
Browse files

minor possible simplification

parent 7609e2a1
No related branches found
No related tags found
1 merge request!6code refactor
......@@ -534,8 +534,8 @@ class Dataset:
# here that the independent variable should monotonically increase even when
# crossing over to a second day.
def extractVardesc(dmp):
shortname = dmp[0]
def extractVardesc(dmp): # TODO: could be a 'utils' function or one line,
shortname = dmp[0] # shortname, units, standardname, longname, *_ = dmp + [None] * 3
units = dmp[1]
standardname = dmp[2] if len(dmp) > 2 else None
longname = dmp[3] if len(dmp) > 3 else None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment