Beispiel #1
0
def directory():
    # set the experiment date 
    now = datetime.datetime.today()
    #now = datetime.datetime(2014, 10, 18, 10, 10, 30)
    print "Today's date: ", now

    # find the experiment starting date
    exp_start = sch.find_experiment_start(now)
    print "Experiment starting date/time: ", exp_start

    # create a unique experiment ID using GUP and beamtime request (BR) numbers:  g + GUP# + r + BR#
    #exp_id = sch.create_experiment_id(now)
                 
    # create an experiment ID using the PI last name 
    exp_id = sch.find_pi_last_name(now)
    print "Experiment ID: ", exp_id

    # create a local directory to store the raw data as: 
    # \local_folder\YYYY-MM\gGUP#rBR#\  or \local_folder\YYYY-MM\PI_last_name\  
    directory = gb.dm_create_directory(exp_start, exp_id, 'local')
    
    return directory
Beispiel #2
0
# set ~/globus.ini and ~/scheduling.ini to match your configuration
import dmagic.scheduling as sch
import dmagic.globus as gb

# pring the current Globus settings
gb.dm_settings()

# set the experiment date 
# now = datetime.date.today()

now = datetime.datetime(2014, 10, 18, 10, 10, 30).replace(tzinfo=pytz.timezone('US/Central'))
print "\n\nToday's date: ", now

# find the experiment starting date
exp_start = sch.find_experiment_start(now)
print "Experiment starting date/time: ", exp_start

# create a unique experiment ID using GUP and beamtime request (BR) numbers as: 
# g + GUP# + r + BR#
#exp_id = sch.create_experiment_id(now)
             
# create an experiment ID using the PI last name: 
exp_id = sch.find_pi_last_name(now)

print "Experiment ID: ", exp_id

# create a local directory to store the raw data as: 
# \local_folder\YYYY-MM\gGUP#rBR#\  or
# \local_folder\YYYY-MM\PI_last_name\  
directory = gb.dm_create_directory(exp_start, exp_id, 'local')
Beispiel #3
0
# set ~/globus.ini and ~/scheduling.ini to match your configuration
import dmagic.scheduling as sch
import dmagic.globus as gb

# pring the current Globus settings
gb.dm_settings()

# set the experiment date
# now = datetime.date.today()

now = datetime.datetime(2014, 10, 18, 10, 10,
                        30).replace(tzinfo=pytz.timezone('US/Central'))
print "\n\nToday's date: ", now

# find the experiment starting date
exp_start = sch.find_experiment_start(now)
print "Experiment starting date/time: ", exp_start

# create a unique experiment ID using GUP and beamtime request (BR) numbers as:
# g + GUP# + r + BR#
#exp_id = sch.create_experiment_id(now)

# create an experiment ID using the PI last name:
exp_id = sch.find_pi_last_name(now)

print "Experiment ID: ", exp_id

# create a directory to store the raw data as:
# \local_folder\YYYY-MM\gGUP#rBR#\  or
# \local_folder\YYYY-MM\PI_last_name\
directory = gb.dm_create_directory(exp_start, exp_id)