klabhub / neurostim

Design and run visual neuroscience experiments using Matlab and the Psychophysics Toolbox.
MIT License
5 stars 3 forks source link

SetAccess control for dynamic properties of plugins is not honored. #54

Closed cnuahs closed 7 years ago

cnuahs commented 7 years ago

The addProperty() method of the plugin class overrides any requested SetAccess mode and makes it 'public'. This appears to be a workaround for a Matlab bug wherein setting the SetAccess property to anything other than 'public' (making it 'protected' for example) results in all attempts to set the property being denied.

bartkrekelberg commented 7 years ago

This is now a permanent feature... In the new version, the parameters class needs access to the dynamic properties of the plugins so they have to be public. That is now hard-coded and the option to specify access modes has been removed.