APS-USAXS / usaxs-bluesky-ended-2023

Bluesky instrument for USAXS
0 stars 0 forks source link

refactor newUser(), use CWD #544

Closed prjemian closed 2 years ago

prjemian commented 2 years ago
prjemian commented 2 years ago

example:

I Mon-18:07:01 - /home/beams/USAXS/.ipython/profile_bluesky/startup/instrument/callbacks/nxwriter_usaxs.py
I Mon-18:07:01 - bluesky startup is complete

In [1]: newUser("Jemian")
I Mon-18:08:04 - Creating user directory: /share1/USAXS_data/2022-01/01_31_Jemian
I Mon-18:08:04 - Current working directory: /share1/USAXS_data/2022-01
I Mon-18:08:04 - SPEC file name : /share1/USAXS_data/2022-01/01_31_Jemian/01_31_Jemian.dat
I Mon-18:08:04 - File will be created at end of next bluesky scan.
W Mon-18:08:04 - No unexpired ESAFs found that match user Jemian
W Mon-18:08:05 - No unexpired proposals found that match user Jemian
W Mon-18:08:05 - APSBSS not updated.
W Mon-18:08:05 - You should check that PVs in APSBSS contain correct information.
Out[1]: '/share1/USAXS_data/2022-01/01_31_Jemian'

In [2]: !ls -larth
total 4.0K
drwxrwxr-x 26 usaxs usaxs 4.0K Jan 27 12:21 ..
drwxrwxr-x  2 usaxs usaxs  104 Jan 31 18:06 .logs
drwxrwxr-x  2 usaxs usaxs   10 Jan 31 18:08 01_31_Jemian
drwxrwxrwx  4 usaxs usaxs   49 Jan 31 18:08 .

In [3]: 
lgtm-com[bot] commented 2 years ago

This pull request introduces 1 alert when merging bc257e40c4a4f1f90a49b64512b44451c9cc996a into 6ebc49059d6ec1fa1b960ff91332c1ecda3c2f84 - view on LGTM.com

new alerts:

lgtm-com[bot] commented 2 years ago

This pull request introduces 1 alert when merging f2c510d13ab27c9ea33620656eaa04f9c2a48470 into 6ebc49059d6ec1fa1b960ff91332c1ecda3c2f84 - view on LGTM.com

new alerts: