diff --git a/wetb/dlc/high_level.py b/wetb/dlc/high_level.py index e70b22ff8fc6aa2ebac73c6e50b711845c1405cb..3c25bfa6c73677c5efd99594378ac8b4bc39dce5 100644 --- a/wetb/dlc/high_level.py +++ b/wetb/dlc/high_level.py @@ -38,9 +38,9 @@ class DLCHighLevel(object): # 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): - setattr(self, name, value) + setattr(self, name.lower(), value) if not hasattr(self, "res_path"): raise Warning("The 'Variables' sheet of '%s' must contain the " "variable 'res_path' specifying the path to the "