1515
1616class BlockExperiment (BaseExperiment , ABC ):
1717 """
18- Extended experiment class that inherits from BaseExperiment to provide block-based functionality.
18+ Inherits from BaseExperiment to provide block-based functionality.
1919
20- This class is designed for experiments that need to run multiple blocks, with each block
21- having its own instructions and duration. It loads stimulus only once and reuses it across blocks.
20+ This class is designed for experiments that need to run as multiple blocks.
21+ Each block has its own instructions and duration. It loads all stimuli at once, then re/uses it across blocks.
2222 """
2323
2424 def __init__ (self , exp_name , block_duration , eeg , save_fn , block_trial_size , n_blocks , iti : float , soa : float , jitter : float ,
2525 use_vr = False , use_fullscr = True , stereoscopic = False ):
26- """ Initializer for the Block Experiment Class
26+ """ Initializer for the BlockExperiment Class
2727
2828 Args:
2929 exp_name (str): Name of the experiment
@@ -41,11 +41,11 @@ def __init__(self, exp_name, block_duration, eeg, save_fn, block_trial_size, n_b
4141 # Calculate total trials for the base class
4242 total_trials = block_trial_size * n_blocks
4343
44- # Initialize the base experiment with total trials
44+ # Initialize BaseExperiment with total trials
4545 # Pass None for duration if block_duration is None to ignore time spent in instructions
4646 super ().__init__ (exp_name , block_duration , eeg , save_fn , total_trials , iti , soa , jitter , use_vr , use_fullscr , stereoscopic )
4747
48- # Store block -specific parameters
48+ # Block -specific parameters
4949 self .block_duration = block_duration
5050 self .block_trial_size = block_trial_size
5151 self .n_blocks = n_blocks
0 commit comments