Replies: 1 comment 4 replies
-
Hi @AdamBebko I was able to get this working but I wasn't able to push to the dev branch or create a new branch and create a pull request, it says that permission is denied. Summary of the changes:
This is what the original Design File (at the end of the variables section) used to look like: This is what the new Design File (at the end of the variables section) used to look like: Experiment Script References Expanded This can still be worked on to make it look better, but at least it works. Here is an example of the output files this generates: What still needs to be added are:
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
See Feature #49 for full details.
"Currently the way to access the variables in the trial script is to something like:
variable_type variableName = (variable_type) Data["variable_name"];
For example: string colorString = (string)Data["Color"];
Having to manually cast (writing the variable type) and to type in the variable's name in quotes can lead to syntax problems and typos. Because the variable names and their type has already been set using the Design File, it would be great of this information could simply be pulled from the Design file.
This could be done automatically, for instance by having a button at the end of the Design File which would edit the Trial, Block, Runner, and Experiment scripts adding the variables setup in the Design file as private class variables (the user could then cut and paste these variables to specific functions in these files). A warning could appear stating that this would overwrite these files so any edits to them would be lost, asking the user if they would like to continue or cancel.
If this step is part of the setup process, first using the script Helper Tool to setup the Experiment files/scripts, then creating the variables in the Design file, then pressing this button to automatically add the files to the previously generated script files (trial, block, etc.), overwriting these files would not be an issue."
Beta Was this translation helpful? Give feedback.
All reactions