Default stop cost calculation returns NaN for any stop where number of arrival times are less than 2.
Proposing this be modified. Since we now include the time frame being considered that is also assisting in calc'ing wait time. In addition, wait times for single arrival schedules should utilize the set fallback cost for the node, rather than being assigned NaN. This would also prevent a situation in which the node was receiving a NaN in both directions, thereby causing it to be pruned.
Default stop cost calculation returns
NaN
for any stop where number of arrival times are less than 2.Proposing this be modified. Since we now include the time frame being considered that is also assisting in calc'ing wait time. In addition, wait times for single arrival schedules should utilize the set fallback cost for the node, rather than being assigned
NaN
. This would also prevent a situation in which the node was receiving aNaN
in both directions, thereby causing it to be pruned.https://github.com/kuanb/peartree/blob/0c5073d8b62a49ea299e8e2c2df1369fc4dcb3ea/peartree/summarizer.py#L154-L163