APS-4ID-POLAR / APS-4ID-POLAR/ipython-polar

Create a function to recover setup

Open
#65 0 comments 0 reactions 1 assignee Claimed by @gfabbris View on GitHub
enhancement
Dominant language
Python
Stars
1
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Something like:

````
# scan is either a scan_no or a database v1 header in this example.
def recover_function(scan=-1):

if isinstance(scan, int):
# It'd be probably better to use V2 for this...
scan = db.v1[scan_no]

undulatory.downstream.offset.put(scan.config_data('undulator')['baseline'][0]['undulator_downstream_offset'])
...
````

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.