UDST / choicemodels

Python library for discrete choice modeling
https://udst.github.io/choicemodels
BSD 3-Clause "New" or "Revised" License
74 stars 33 forks source link

fix for lottery choice bug for empty alts table #75

Open mxndrwgrdnr opened 2 years ago

mxndrwgrdnr commented 2 years ago

This PR fixes a bug initerative_lottery_choices() which creates an empty merged choice table object if/when all rows of alts table are filled and dropped before max capacity is exceeded.

github-actions[bot] commented 2 years ago

Test coverage is 76%