make some arguments of the constructor optional
SimCAD can run without seed, exogenous_states and env_processes. Making those arguments optional in the configuration constructor reduces the overhead in the user's configuration file.
This commit is contained in:
parent
b2ae2ded30
commit
2065287a5b
|
|
@ -7,7 +7,7 @@ from SimCAD.configuration.utils.behaviorAggregation import dict_elemwise_sum
|
|||
|
||||
|
||||
class Configuration:
|
||||
def __init__(self, sim_config, state_dict, seed, exogenous_states, env_processes, mechanisms, behavior_ops=[foldr(dict_elemwise_sum())]):
|
||||
def __init__(self, sim_config, state_dict, mechanisms, seed={}, exogenous_states={}, env_processes={}, behavior_ops=[foldr(dict_elemwise_sum())]):
|
||||
self.sim_config = sim_config
|
||||
self.state_dict = state_dict
|
||||
self.seed = seed
|
||||
|
|
|
|||
Loading…
Reference in New Issue