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/Load, Extreme backup plan #62

Open
capitanevs opened this issue Sep 8, 2021 · 1 comment
Open

Save/Load, Extreme backup plan #62

capitanevs opened this issue Sep 8, 2021 · 1 comment
Labels
STAND BY featured topic right now.

Comments

@capitanevs
Copy link
Collaborator

capitanevs commented Sep 8, 2021

In case we can't fix the bug from within OASYS we need a backup.

This is the best I envisioned in spare time.

The solution would be enriching WISER data wire with a new (big) data field that contains a list of field-name+field-values pair (classified per optical element). Then, at every step, if this "storage" data field is not empty, the values are copied from memory to the GUI.

Then we would need a terminal widget to save data in a certain file, and a starting widget to load data from file.

This should be the ideal appearance (also the "source" widget has to accept data wire)

immagine

Possible issues

  • Cycling over all the input field of a widget
  • Finding a smart way to convert the values from entry txtboxes to file
  • A lot of other things I guess, but this is just in case we can not find a better solution.

Cons

  • It requires an extra file
  • it adds extra "slang" to OASYS
  • It brings a lot of work...
  • It is a patch
  • A workspace with many branch, would need as many "Save" widget, or many branches converging to a unique "Save" widget (!!!!)

Pros

  • It seems quite robust, in the end, and we would have total control on it.
@capitanevs
Copy link
Collaborator Author

I wrote it just as a reminder. I hope we could find better solutions :-)

@capitanevs capitanevs added the STAND BY featured topic right now. label Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
STAND BY featured topic right now.
Projects
None yet
Development

No branches or pull requests

1 participant