Skip to content
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

Closed
prjemian opened this issue Feb 22, 2023 · 6 comments
Closed

Save/restore information between sessions #820

prjemian opened this issue Feb 22, 2023 · 6 comments
Milestone

Comments

@prjemian
Copy link
Contributor

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.

@prjemian prjemian added this to the 1.6.15 milestone Feb 22, 2023
@prjemian
Copy link
Contributor Author

@strempfer Thanks for the idea!

@prjemian
Copy link
Contributor Author

The class should provide a dict-like API to the user and handle automatically the backend file storage.

@prjemian
Copy link
Contributor Author

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.

@prjemian prjemian modified the milestones: 1.6.16, 1.6.17 May 20, 2023
@prjemian
Copy link
Contributor Author

@prjemian
Copy link
Contributor Author

@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?

@prjemian
Copy link
Contributor Author

prjemian commented Dec 8, 2023

On discussion with @strempfer, bluesky/hklpy#279 and related work will satisfy this request.

@prjemian prjemian closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant