-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Currently, cellbase preferences are stored in getpref/setpref('cellbase','preferencename','preferencevalue'). Since these preferences are not part of the cellbase mat-file (Cellbase.mat by default), they are not being directly shared when sharing cellbase files and cellbase data folder. In addition, choosecb() seems to have bugs not preserving all of the preferences of a cellbase. Most preferences are cellbase-specific, i.e. could be different for different cellbases.
I would suggest to save all cellbase-specific preferences in a PREFERENCES variable in the cellbase mat-file (Cellbase.mat by default). This would require small changes in quite a lot of locations, i.e. most calls of setpref/getpref. It would also not be fully back-compatible. The best feasible almost-back-compatible approach I can think of is having a function which creates default parameters in the new system if they are not already there, or reads from the current cellbase preferences.