@@ -36,15 +36,15 @@ def gaussian_poisson_sampling(
3636 Λ = U * (mean_req_per_minute_per_user / 60) [req/s].
3737 3. While inside the current window, draw gaps
3838 Δt ~ Exponential(Λ) using inverse-CDF.
39- 4. Stop once the virtual clock exceeds *simulation_time_second *.
39+ 4. Stop once the virtual clock exceeds *simulation_time *.
4040 """
4141 rng = rng or np .random .default_rng ()
4242
43- simulation_time_second = input_data .total_simulation_time
43+ simulation_time = input_data .total_simulation_time
4444 # pydantic in the validation assign a value and mypy is not
4545 # complaining because a None cannot be compared in the loop
4646 # to a float
47- assert simulation_time_second is not None
47+ assert simulation_time is not None
4848
4949 # λ_u : mean concurrent users per window
5050 mean_concurrent_user = float (input_data .avg_active_users .mean )
@@ -65,7 +65,7 @@ def gaussian_poisson_sampling(
6565 window_end = 0.0 # end of the current user window
6666 lam = 0.0 # aggregate rate Λ (req/s)
6767
68- while now < simulation_time_second :
68+ while now < simulation_time :
6969 # (Re)sample U at the start of each window
7070 if now >= window_end :
7171 window_end = now + float (sampling_window_s )
@@ -86,7 +86,7 @@ def gaussian_poisson_sampling(
8686 delta_t = - math .log (1.0 - u_raw ) / lam
8787
8888 # End simulation if the next event exceeds the horizon
89- if now + delta_t > simulation_time_second :
89+ if now + delta_t > simulation_time :
9090 break
9191
9292 # If the gap crosses the window boundary, jump to it
0 commit comments