Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

refactor newUser(), use CWD #544

Merged
merged 4 commits into from
Feb 1, 2022
Merged

refactor newUser(), use CWD #544

merged 4 commits into from
Feb 1, 2022

Conversation

prjemian
Copy link
Contributor

@prjemian prjemian commented Feb 1, 2022

@prjemian prjemian added this to the 2022-01 operations milestone Feb 1, 2022
@prjemian prjemian requested a review from jilavsky February 1, 2022 00:07
@prjemian prjemian self-assigned this Feb 1, 2022
@prjemian
Copy link
Contributor Author

prjemian commented Feb 1, 2022

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
Copy link

lgtm-com bot commented Feb 1, 2022

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

new alerts:

  • 1 for Unused local variable

@lgtm-com
Copy link

lgtm-com bot commented Feb 1, 2022

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

new alerts:

  • 1 for Unused local variable

@prjemian prjemian merged commit 8c14902 into master Feb 1, 2022
@prjemian prjemian deleted the 479-refactor-newUser branch February 1, 2022 00:28
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor newUser() folder creation and data directory handling
1 participant