def get_simple_scenarios(context): pomdp_scenarios = [ dict(id_pomdp='idec-test01', expected_ntrajectories=2, expected_nbits=0, expected_nstates=1), dict(id_pomdp='idec-test02', expected_ntrajectories=2, expected_nbits=0, expected_nstates=1), dict(id_pomdp='idec-test03', expected_ntrajectories=4, expected_nbits=1, expected_nstates=2), dict(id_pomdp='idec-test04', expected_ntrajectories=3, expected_nbits=0, expected_nstates=1), ] from pkg_resources import resource_filename # @UnresolvedImport dirs = [ resource_filename("tmdp", "configs"), resource_filename("gridworld", "configs"), ] GlobalConfig.global_load_dirs(dirs) ts = [] for t in pomdp_scenarios: t['pomdp'] = context.comp_config(instance_mdp, t['id_pomdp']) ts.append(t) return ts
def initial_setup(self): options = self.get_options() # Load configurations for all modules GlobalConfig.global_load_dirs(options.config_dirs)
def initial_setup(self): config_dirs = self.get_config_dirs() GlobalConfig.global_load_dirs(config_dirs) np.seterr(all='raise')
def initial_setup(self): config_dirs = self.get_config_dirs() GlobalConfig.global_load_dirs(config_dirs)