Skip to content

Cellbase preferences as part of cellbase mat-file #2

@torbenott

Description

@torbenott

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions