Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with OpenSesame 3.0 #2

Open
smathot opened this issue Jan 21, 2016 · 5 comments
Open

Compatibility with OpenSesame 3.0 #2

smathot opened this issue Jan 21, 2016 · 5 comments

Comments

@smathot
Copy link

smathot commented Jan 21, 2016

I receive quite a few automated bug reports about this plug-in on OpenSesame 3.0. On the one hand this is good news, because it means people are using the plug-in. On the other, it means that it would be a good idea to update the plug-in. I suspect it's only a matter of fixing the management of experimental variables, so that they are all properties of the var object, as described here:

@esdalmaijer
Copy link
Contributor

Is self.var the new self.experiment?

@smathot
Copy link
Author

smathot commented Jan 26, 2016

Not really. var is a container object for experimental variables. Before, experimental variables where properties of the experiment object, but this made the distinction between experimental variables and the inner mechanics of OpenSesame very fuzzy.

@esdalmaijer
Copy link
Contributor

Thanks! I've just seen @dev-jam's new implementation, and think I get the concept. Should probably change that in some of my old plug-ins too. Did you get any automatic bug reports on the slider plug-in? (Or anything else? I doubt people are still using my other things.)

@smathot
Copy link
Author

smathot commented Jan 26, 2016

Yes, I actually have seen a few bug reports for the slider as well.

@dev-jam
Copy link
Owner

dev-jam commented Mar 24, 2016

Solved! Plugin is now opensesame 3 compliant (all my plugins btw)

At the moment I am using:
self.var for item specific elements/variables
self.experiment for experiment wide variables/instances
self.variable_name for plugin wide variables

In the prepare phase I link the item specific variables to plugin wide variables:
self.variable_name1 = self.var.variable_name1
Could you advice me on this? Is this a good habit or can I better use the self.var through the entire class?

@dev-jam dev-jam closed this as completed Mar 24, 2016
@dev-jam dev-jam reopened this Mar 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants