Skip to content

Commit

Permalink
Merge pull request #328 from LSSTDESC/Issue#326/Iterable_fix
Browse files Browse the repository at this point in the history
Fixed `Iterable` inheritence.
  • Loading branch information
rbiswas4 authored Dec 9, 2022
2 parents cce606a + 3c998af commit 878b605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opsimsummary/opsim_out.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ def get_propIDDict(proposalDF, opsimversion='fbsv2'):

# To support multiple proposals
for key in pdict:
if isinstance(pdict[key], collections.Iterable):
if isinstance(pdict[key], collections.abc.Iterable):
pdict[key] = pdict[key].values

return pdict
Expand Down Expand Up @@ -839,7 +839,7 @@ def propIDVals(subset, propIDDict, proposalTable):
# unroll lists
l = list()
for elem in x:
if isinstance(elem, collections.Iterable):
if isinstance(elem, collections.abc.Iterable):
for e in elem:
l.append(e)
else:
Expand Down

0 comments on commit 878b605

Please # to comment.