Browse Source

Refactor: Read host and port from config

dk 1 year ago
parent
commit
8ad7fb14ff
2 changed files with 4 additions and 2 deletions
  1. 0 0
      backend/general_grasp_training.psyexp
  2. 4 2
      backend/general_grasp_training.py

File diff suppressed because it is too large
+ 0 - 0
backend/general_grasp_training.psyexp


+ 4 - 2
backend/general_grasp_training.py

@@ -2,7 +2,7 @@
 # -*- coding: utf-8 -*-
 """
 This experiment was created using PsychoPy3 Experiment Builder (v2023.2.3),
-    on Wed Nov 15 20:23:16 2023
+    on Thu Nov 16 17:00:04 2023
 If you publish work using this script the most relevant publication is:
 
     Peirce J, Gray JR, Simpson S, MacAskill M, Höchenberger R, Sogo H, Kastman E, Lindeløv JK. (2019) 
@@ -100,7 +100,9 @@ args = parse_args()
 
 # connect neo
 receiver = NeuracleDataClient(n_channel=len(config_info['channel_labels']), 
-                               samplerate=config_info['sample_rate'])
+                               samplerate=config_info['sample_rate'],
+                               host=config_info['host'],
+                               port=config_info['port'])
 
 # connect to trigger box
 trigger = TriggerNeuracle()

Some files were not shown because too many files changed in this diff