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

two more comments

parent f7125d38
No related branches found
No related tags found
1 merge request!6code refactor
......@@ -125,7 +125,7 @@ class DataStore2110(collections.UserDict):
self.add(**newdata)
def addBulkDep(self, ivar, raw):
nlines, nvars = raw.shape
nlines, nvars = raw.shape # nvars not used
self._addDeplines(ivar, raw, nlines)
def _addDeplines(self, ivar, raw, n):
......@@ -491,6 +491,10 @@ class Dataset:
self.format = Formats(int(dmp[1]))
except:
raise ValueError("ICARTT format {:d} not implemented".format(dmp[1]))
# TODO except clause could be re-written like
# except ValueError as ve:
# raise ValueError(f"ICARTT format {dmp[1]:d} not implemented") from ve
# to show the error trace
if len(dmp) > 2:
self.version = dmp[2]
......
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