Skip to content

Commit

Permalink
updated task parameters json output with additional parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele Fabbri committed Feb 18, 2023
1 parent 825de9d commit d15e450
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions iblrig/base_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def output_task_parameters_to_json_file(self) -> Path:
"""
output_dict = dict(self.task_params) # Grab parameters from task_params session
output_dict.update(dict(self.hardware_settings)) # Update dict with hardware settings from session
# TODO: add subject, project, and task protocol to output
output_dict.update(dict(self.session_info)) # Update dict with session_info (subject, procedure, projects)
output_dict.update({"PYBPOD_PROTOCOL": self.pybpod_settings["PYBPOD_PROTOCOL"]})

# Output dict to json file
json_file = self.paths.SESSION_FOLDER / "raw_behavior_data" / "_iblrig_taskSettings.raw.json"
Expand Down Expand Up @@ -472,7 +473,7 @@ def start_mixin_sound(self):
amplitude=self.task_params.WHITE_NOISE_AMPLITUDE,
fade=0.01,
chans=self.sound['channels'])
print(" toto")

# SoundCard config params
if self.hardware_settings.device_sound['OUTPUT'] == 'harp':
sound.configure_sound_card(
Expand Down

0 comments on commit d15e450

Please sign in to comment.