Skip to content

Commit b0555b6

Browse files
committed
rebalancing logging
1 parent 29e1a5d commit b0555b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

demos/models/rebalancing.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import time
1212
from logging_logic import log_execution_time
13+
from loguru import logger
1314

1415
STEP_NAME = "household_rebalancing"
1516

@@ -91,6 +92,9 @@ def household_rebalancing(households, persons, year, get_new_households, get_new
9192
to_remove_hh += selected_hh
9293
if adjustment > 0:
9394
to_duplicate_hh += selected_hh
95+
96+
logger.debug(f"Number of households to duplicate: {len(to_duplicate_hh)}")
97+
logger.debug(f"Number of households to remove: {len(to_remove_hh)}")
9498

9599
# Duplicate the households accordingly
96100
## We duplicate first to reduce the chances of a household_id collision

0 commit comments

Comments
 (0)