-
Notifications
You must be signed in to change notification settings - Fork 0
Conversion example
Akseli Palén edited this page Apr 6, 2016
·
1 revision
The following converts gazedata from icl/project/cg/dataset/8mo to gazelib/common/v1 and stores it as JSON.
from icllib.conversion.icl.cg8mo.common import convert
gazedata_file_path = 'cg3_childcogn_8mo_SRT2.gazedata'
experiment_config = 'cg_experiment-config.json'
participant_number = '3'
trial_config_id = 'SRT2'
was_calibrated = True
c = convert(gazedata_file_path, experiment_config, participant_number,
trial_config_id, was_calibrated)
c.save_as_json('trial.json', human_readable=True)