-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save/restore information between sessions #820
Comments
@strempfer Thanks for the idea! |
The class should provide a dict-like API to the user and handle automatically the backend file storage. |
This enhancement is prompted by the Sardana Door feature which allows for different configurations (based on ipython profile?). Still trying to find what, exactly, such a configured file looks like. |
Similar idea to diffractometer configuratio: |
@strempfer - The default bluesky setup already saves the RunEngine metadata to local storage and the diffractometer configuration can be saved via the new code in hklpy. Is there other information to be saved and restored? |
On discussion with @strempfer, bluesky/hklpy#279 and related work will satisfy this request. |
A user request is to save local information to a file for later restore. The file content might be a dictionary (key: value pairs).
The file would be updated automatically as local value changes. We'd need multiple instances, for system, for user A, user B, user C with settings 1, 2, and 3, ...
We'd need to decide when to load these, and which ones to load by default on startup.
We also need to handle different types of local information (Python variable, ophyd device/signal, EPICS PV).
We need a backend file handler for this. Choice of file format is not important to us (at least now). Human readable (& editable) is not an initial concern. Maybe later.
The text was updated successfully, but these errors were encountered: