Globus¶
globus is a python script that automatically creates a directory on a globus server as “year-month/pi_last_name” (or any other preset path) and sends a customizable notification email to “pi_email” that includes the URL to the shared folder.
year-month, pi_last_name and pi_email area automatically retrieved from the APS scheduling system for the current user (see DTagging for more information on how to create and update epics process variables containing user and experiment information using the APS scheduling system).
globus also creates automatically year_month/user folders on both data collection and data analysis machines (e.g. pg10ge and handyn)
At the beginning of a new user beamtime login into user2bmb@arcturus then:
start_tomo
and open the user info screen:
and make sure the user PV are updated correctly from the scheduling system if not hit the update button or manually enter the user last name/email address then:
[user2bmb@arcturus]$ bash
[user2bmb@arcturus]$ conda activate dm
[user2bmb@arcturus]$ source /home/dm_bm/etc/dm.setup.sh
to create YYYY-MM/PI_last_name directories on data collection and data analysis computers:
[user2bmb@arcturus]$ globus dirs
to send a notification email to the experiment PI with the Globus link from where to downalod the data:
[user2bmb@arcturus]$ globus email
to send the same to all users listed in the proposal:
[user2bmb@arcturus]$ globus email --schedule
Full help:
[user2bmb@arcturus]$ globus -h
usage: globus [-h] [--config FILE] ...
optional arguments:
-h, --help show this help message and exit
--config FILE File name of configuration
Commands:
init Create configuration file
show Show endpoints
email Create folder on endpoint and send email with link to user
dirs Create folders on data collection and data analysis computers