Skip to content

Conversation

@fitzsturgill
Copy link

+function s = setBpodDefaultSettings(s, defaults)
+% FS
+% allows for new settings fields to be added to protocol while still
+% using old protocol settings
+%
+% s- settings structure
+% defaults- cell array specifying settings fields and default values
+
+% Usage: S = BpodSystem.ProtocolSettings
+% defaults = {'GUI.Epoch', 1; OdorTime, 1};
+% S = setBpodDefaultSettings(S, defaults);

… to add new settings parameters to your protocol and to recycle your old, saved protocol settings but updated to reflect the introduced settings
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

Successfully merging this pull request may close these issues.

2 participants