|
Post by volodymyr on May 20, 2020 16:02:16 GMT
Dear PsyToolkit experts,
I have a long table with 100000 rows/trials.
I need to run only the trials, for example, starting from 60000 and until 60100.
I can do it with an if look, but looping until the right TABLEROW takes too long.
Is there a rapid way to run sequentially a specific set of trials?
Thank you in advance for any ideas!
Sincerely yours, Volodymyr
|
|
|
Post by PsyToolkit on May 20, 2020 17:44:42 GMT
No, this is not something you can do.
I wonder how big the resulting code is and how long this takes for people to load?
I am not sure if you are doing things efficiently. Please contact psytoolkit@gmx.com, maybe there is an easier way to do what you want to do with PsyToolkit.
|
|
|
Post by volodymyr on May 20, 2020 20:43:31 GMT
Thank you your rapid reply!
The code is not too big, the biggest part is the table.
It does not take long to load, but the if looping with "if TABLEROW > $start && TABLEROW < $end" of 100000 rows takes about 2 minutes in total.
Yes, it is quite possible that there is a more efficient way to generate experimental conditions. I described my issue in my letter to psytoolkit@gmx.com.
Sincerely yours, Volodymyr
|
|
|
Post by jbrjbr on Oct 1, 2020 1:18:38 GMT
Hi, I am curious: what was the response that you got about this issue? Did you find a more efficient way to do things?
Cheers,
|
|
|
Post by PsyToolkit on Oct 2, 2020 9:37:18 GMT
If you need a super-long table, I actually recommend to consider whether you need a table at all. You do not always need a table.
With the new "array" functions, it is easy to program an experiment without a table at all. That is a real change in the PsyToolkit software programming language since the latest new version.
I have some examples of this; I will upload these soon, but I am happy to send you the code via email as well (psytoolkit@gmx.com).
|
|