juliencegarra / OpenMATB

OpenMATB: A Multi-Attribute Task Battery promoting task customization, software extendability and experiment replicability
Other
45 stars 33 forks source link

Ask: embedded scenarios #13

Closed thomakl closed 1 year ago

thomakl commented 1 year ago

Hi,

As I am discovering how to build a scenario, I have caught one detail in the "scenarios\generated\test.txt" file. It seems that we can call a scenario inside another scenario with

# Custom scenario commands
# Source: Scenarios/custom_incapacitation.txt

However, I have adapted it as follows to make it looks like an instruction, but it breaks :

# Custom scenario commands
0:00:02;scenarios;filename;scenarios/custom_incapacitation.txt

Is there a way to embed scenarios ?

benoitvalery commented 1 year ago

Hi @thomakl. No there is no built-in command to embed a scenario inside another one. For now, only the scenario_generator.py is doing such a thing (ll. 285-297). For questions of transparency, it is important that any usable scenario is complete and reviewable (not form with included parts).

thomakl commented 1 year ago

Hi @benoitvalery,

I understand. I found an alternative by working with a spreadsheet.