You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment Scenario has the following logic to initialise time dependent arrivals sampling:
classScenario:
# Other methods definitionsdefinit_nspp(self):
# read arrival profileself.arrivals=pd.read_csv(NSPP_PATH)
self.arrivals['mean_iat'] =60/self.arrivals['arrival_rate']
# maximum arrival rate (smallest time between arrivals)self.lambda_max=self.arrivals['arrival_rate'].max()
# thinning exponentialself.arrival_dist=Exponential(60.0/self.lambda_max,
random_seed=self.seeds[8])
# thinning uniform rngself.thinning_rng=Uniform(low=0.0, high=1.0,
random_seed=self.seeds[9])
The constant NSPP links to the data file containing the arrival profile. This limits experimentation and testing. A solution is to rewrite the function to use a member attribute of the class e.g. self.nspp_path that is set during __init__ where NSPP is the default value.
The text was updated successfully, but these errors were encountered:
At the moment
Scenario
has the following logic to initialise time dependent arrivals sampling:The constant
NSPP
links to the data file containing the arrival profile. This limits experimentation and testing. A solution is to rewrite the function to use a member attribute of the class e.g.self.nspp_path
that is set during__init__
whereNSPP
is the default value.The text was updated successfully, but these errors were encountered: