Skip to content

Commit

Permalink
Merge pull request #191 from UDST/no-choosers
Browse files Browse the repository at this point in the history
fixed boundary case in supply and demand
  • Loading branch information
fscottfoti authored Apr 12, 2017
2 parents 5736667 + 38f2635 commit 286e610
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions urbansim/models/dcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,9 @@ def summed_probabilities(self, choosers, alternatives):
Summed probabilities from each segment added together.
"""
if len(alternatives) == 0 or len(choosers) == 0:
return pd.Series()

logger.debug(
'start: calculate summed probabilities in LCM group {}'.format(
self.name))
Expand Down

0 comments on commit 286e610

Please sign in to comment.