The problem is this line: if isinstance(df.loc[df.index[0],df.columns[-1]],Number): where we expect a Number (parameter) or a cbool or a str (set), we get an array if df.index[0] matches multiple rows. Switching to locational indexing iloc avoids this problem.
Closes #62
Conflicts with #87, but very easy to fix.
Tests
[x] Passes pytest
[x] The test case in #62 now creates a gdx with two Parameters (correct behaviour)
The problem is this line:
if isinstance(df.loc[df.index[0],df.columns[-1]],Number):
where we expect a Number (parameter) or a cbool or a str (set), we get an array if df.index[0] matches multiple rows. Switching to locational indexingiloc
avoids this problem.Closes #62
Conflicts with #87, but very easy to fix.
Tests