Skip to content
Jack Brookes edited this page Jun 6, 2018 ยท 20 revisions

The settings system allows researchers to assign parameters (e.g. independent variables) to the Session, a Block, or a Trial. The settings system is handles with a dedicated class: Settings.

Instances of a Session, Block, or Trial each contain a .settings field which is initially populated with an empty settings object.

When we begin the Session, we optionally pass a Settings object to be then used as the settings for the Session.

Settings from .json files

By default the Session is started using the UI, with a selected .json file ("Experiment profile") is deserialized. The deserialisation is performed by the popular MiniJSON script. When deserializing from .json, care must be taken when converting the type of the objects in our settings file.

The JSON is just a string - so MiniJSON interprets each value and attempts to deserialize it into an appropriate C# type.

| Example | JSON type |

If you have issues you can check validity of your JSON files with an online validator tool.

๐Ÿง  Core topics

โ“ More help


๐Ÿ‘ฉโ€๐Ÿ’ป Programming reference

Unit tests

Clone this wiki locally