Skip to content

Flexible default settings#14

Open
fitzsturgill wants to merge 2 commits intomasterfrom
flexibleDefaultSettings
Open

Flexible default settings#14
fitzsturgill wants to merge 2 commits intomasterfrom
flexibleDefaultSettings

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.

1 participant