Dallinger / Griduniverse

Welcome to the Griduniverse.
7 stars 3 forks source link

Yaml Game Config #244

Closed alecpm closed 1 year ago

alecpm commented 1 year ago

This is intended as a starting point for feature development. Adds a sample game configuration.

The when exp.configure() is run, the experiment loads and stores the full game configuration object in exp.game_config. It stores all objects indexed by object_id in exp.object_config, and all transitions indexed by (actor_start , target_start ) tuples in exp.transition_config.

alecpm commented 1 year ago

There's a problem here, which is that dallinger.utils.check_experiment_dependencies uses the requirements.txt file (which includes PyYAML) and the packages there using importlib.util.find_spec, but that method can't see PyYAML only the importable name yaml.

This will require a small fix in Dallinger, which should be helpful for other dependencies whose package name differs from its importable name.

alecpm commented 1 year ago

I've added a PR for the Dallinger fix here: https://github.com/Dallinger/Dallinger/pull/5409