in src/genetic_algorithm.py [0:0]
def load_delivery_stops():
# load the stops (each of which includes an X and Y coord), using Set 0 (the only set loaded at this point)
stops = None
try:
response = stops_table.get_item(Key={'StopsSetID': 0})
except ClientError as e:
print(e.response['Error']['Message'])
else:
stops = response['Item']['Locations']
print(f'Loaded {len(stops)} delivery stops')
for delivery_stop in stops:
delivery_stop['X'] = int(delivery_stop['X'])
delivery_stop['Y'] = int(delivery_stop['Y'])
return stops