Remove unnecessary debug outputs for production performance
This commit is contained in:
@@ -318,9 +318,6 @@ class EconomicSimulation:
|
||||
if not wealth_values:
|
||||
return [], []
|
||||
|
||||
# Debug logging
|
||||
print(f"DEBUG: Wealth values - count: {len(wealth_values)}, min: {min(wealth_values)}, max: {max(wealth_values)}")
|
||||
|
||||
# Calculate histogram bins
|
||||
min_wealth = min(wealth_values)
|
||||
max_wealth = max(wealth_values)
|
||||
@@ -328,7 +325,6 @@ class EconomicSimulation:
|
||||
if min_wealth == max_wealth:
|
||||
# All agents have same wealth
|
||||
result = [f"${min_wealth:.0f}"], [len(wealth_values)]
|
||||
print(f"DEBUG: All agents have same wealth - labels: {result[0]}, counts: {result[1]}")
|
||||
return result
|
||||
|
||||
# Create bins
|
||||
@@ -357,7 +353,6 @@ class EconomicSimulation:
|
||||
if bin_start <= wealth < bin_end:
|
||||
bin_counts[i] += 1
|
||||
|
||||
print(f"DEBUG: Histogram result - labels: {bin_labels}, counts: {bin_counts}")
|
||||
return bin_labels, bin_counts
|
||||
|
||||
def update_parameters(self, new_parameters: SimulationParameters):
|
||||
|
Reference in New Issue
Block a user