Python File Resource¶
Description¶
A special type of resource file that contains Python source code.
The file is executed when the experiment loads. The execution takes place after all experiment-defined variables have been created, but before any other components are created. Therefore, the Python code can set variable values or perform additional initialization tasks, and other components can make use of the results.
For information on the modules and functions available to your Python code, see Run Python File.
Signature¶
resource/python_file