Skip to content

Commit

Permalink
fixup! opf: [FIX] snapshots can be any derived type of pandas indices
Browse files Browse the repository at this point in the history
  • Loading branch information
coroa committed Jan 12, 2016
1 parent 83f389b commit 29a55cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opf.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def soc_constraint(model,su_name,snapshot):

if isinstance(snapshots, list):
i = snapshots.index(snapshot)
elif isinstance(snapshots, pd.Index)
elif isinstance(snapshots, pd.Index):
i = snapshots.get_loc(snapshot)
else:
raise NotImplementedError("snapshots have to be lists or pandas indices")
Expand Down

0 comments on commit 29a55cd

Please sign in to comment.