Open ke-zhang-rd opened 4 years ago
@stuartcampbell @danielballan
This is a checklist of features of new command function
For (3) an IPython magic might be used instead, since it can occur in the same process where RE.md
is defined. But I think that's an open question, and we may want both.
For (4) I am unclear on whether we want to collect the saf or just the proposal number. (Is that what "gup" means?") I think we should treat them all as strings, because we are not in control of the specification and have to assume that they may not always be integers.
Use a string, makes it future proof. APS has at least three kinds of proposal. It is useful to include the kind of proposal as a prefix.
On Mon, Jun 8, 2020, 12:31 PM Dan Allan notifications@github.com wrote:
For (3) an IPython magic might be used instead, since it can occur in the same process where RE.md is defined. But I think that's an open question, and we may want both.
For (4) I am unclear on whether we want to collect the saf or just the proposal number. (Is that what "gup" means?") I think we should treat them all as strings, because we are not in control of the specification and have to assume that they may not always be integers.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NSLS-II/nslsii/issues/85#issuecomment-640768467, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARMUMHWYFOYBKMCZEC2ZQDRVUN6TANCNFSM4NIDJSKQ .
NeXus went through this same decision tree and agreed, finally, string was the robust choice.
On Mon, Jun 8, 2020, 12:36 PM Pete Jemian prjemian@gmail.com wrote:
Use a string, makes it future proof. APS has at least three kinds of proposal. It is useful to include the kind of proposal as a prefix.
On Mon, Jun 8, 2020, 12:31 PM Dan Allan notifications@github.com wrote:
For (3) an IPython magic might be used instead, since it can occur in the same process where RE.md is defined. But I think that's an open question, and we may want both.
For (4) I am unclear on whether we want to collect the saf or just the proposal number. (Is that what "gup" means?") I think we should treat them all as strings, because we are not in control of the specification and have to assume that they may not always be integers.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NSLS-II/nslsii/issues/85#issuecomment-640768467, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARMUMHWYFOYBKMCZEC2ZQDRVUN6TANCNFSM4NIDJSKQ .
Expected Behavior
What will happen after execuate
bsui
After entering bsui(ipython)
new_experiment(gup=0, saf=0, name='Def'...)
could overwrite session.jsonlist_experiment_info
will print session.jsonend_experiment
will delete session.jsonRE()
will check if session.json exist. If it's, load it as equivalentRE.md['saf'] = "123456"
Options
bsui --develop
will skip prompt to make development easierbsui --continue
won't overwrite existing session.jsonPossible Solution
nslsii
. BMM has a example in 08-user.pynew_experiment
list_experiment_info
end_experiment
Update bsui. A good source of prompt code might be cookiecutter. It's depend on click
A location and format of file
session.json
, maybe: