Skip to content

Commit 3e88f0f

Browse files
committed
fix: use the correct stretch parameter name
1 parent 719f01c commit 3e88f0f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

school_center.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,15 @@ def allocate_to_centers(centers: List[Dict[str, str]], school: Dict[str, str], t
283283

284284
# per_center = math.ceil(to_allot / min(calc_num_centers(to_allot), len(centers_for_school)))
285285
to_allot, allocated_centers = allocate_to_centers(centers_for_school, s, to_allot, centers_remaining_cap)
286+
287+
if int(s['scode']) == 27159:
288+
logger.info('FOR 27159:::::::')
289+
logger.info(to_allot)
290+
logger.info(allocated_centers)
286291

287292
if to_allot > 0: # try again with relaxed constraints and more capacity at centers
288293
expanded_centers = centers_within_distance(s, centers, ABS_DISTANCE_THRESHOLD)
289-
to_allot, allocated_centers = allocate_to_centers(expanded_centers, s, to_allot, centers_remaining_cap, stretch_capacity=True)
294+
to_allot, allocated_centers = allocate_to_centers(expanded_centers, s, to_allot, centers_remaining_cap, stretch=True)
290295

291296
for c in allocated_centers.values():
292297
allocation_file.writerow([s['scode'],

0 commit comments

Comments
 (0)