Skip to content
Snippets Groups Projects
Commit 3161bcca authored by David Verelst's avatar David Verelst
Browse files

fixing some mistakes in the updated dlc.high_level

parent 5384be32
No related branches found
No related tags found
No related merge requests found
...@@ -38,9 +38,9 @@ class DLCHighLevel(object): ...@@ -38,9 +38,9 @@ class DLCHighLevel(object):
# Variables # Variables
df_vars = pd.read_excel(self.filename, sheetname='Variables', df_vars = pd.read_excel(self.filename, sheetname='Variables',
index='Name') index_col='Name')
for name, value in zip(df_vars.index, df_vars.Value.values): for name, value in zip(df_vars.index, df_vars.Value.values):
setattr(self, name, value) setattr(self, name.lower(), value)
if not hasattr(self, "res_path"): if not hasattr(self, "res_path"):
raise Warning("The 'Variables' sheet of '%s' must contain the " raise Warning("The 'Variables' sheet of '%s' must contain the "
"variable 'res_path' specifying the path to the " "variable 'res_path' specifying the path to the "
......
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