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:
Markus 2019-01-17 10:22:25 -02:00
parent b2ae2ded30
commit 2065287a5b
1 changed files with 1 additions and 1 deletions

View File

@ -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