Commit 12b39f21 authored by Mitchell Moore's avatar Mitchell Moore
Browse files

Fix var shadowing of set.

parent 5f790b7e
......@@ -156,27 +156,27 @@ def multi_transfer(tc, src_id, dest_id, src_dir, dest_dir, output):
if args.batch:
ready_transfers = []
submitted_data = []
for set in data_sets:
data = globus_sdk.TransferData(tc, src_id, dest_id, label="Add ds{} Batch".format(set),
for item in data_sets:
data = globus_sdk.TransferData(tc, src_id, dest_id, label="Add ds{} Batch".format(item),
sync_level=None, verify="checksum")
data.add_item(src_dir + "ds{}".format(set), dest_dir + "ds{}".format(set), recursive=True)
data.add_item(src_dir + "ds{}".format(item), dest_dir + "ds{}".format(item), recursive=True)
ready_transfers.append(data)
transfer_result = tc.submit_transfer(data)
submitted_data.append(transfer_result)
else:
for set in data_sets:
write_results(single_transfer_data(tc, args.src_ep_id, args.dest_ep_id, src_dir + 'ds{}'.format(set),
dest_dir + 'ds{}'.format(set), output),
for item in data_sets:
write_results(single_transfer_data(tc, src_id, dest_id, src_dir + 'ds{}'.format(item),
dest_dir + 'ds{}'.format(item), output),
"{}.csv".format(test_start))
if args.write_back:
ddir = args.return_directory or args.src_dir
for set in data_sets:
write_results(single_transfer_data(tc, args.dest_ep_id, args.src_ep_id,
dest_dir + 'ds{}'.format(set),
ddir + 'ds{}'.format(set),
ddir = kwargs.get('hack') or args.return_directory or args.src_dir
for item in data_sets:
write_results(single_transfer_data(tc, dest_id, src_id,
dest_dir + 'ds{}'.format(item),
ddir + 'ds{}'.format(item),
output), "{}.csv".format(test_start))
......@@ -234,5 +234,16 @@ if __name__ == '__main__':
test_start = datetime.now().strftime("%m-%d-%Y_%Hh%Mm%Ss")
<<<<<<< Updated upstream
multi_transfer(tc, args.src_ep_id, args.dest_ep_id, args.src_dir, args.dest_dir, True)
clean()
=======
# multi_transfer(tc, args.src_ep_id, args.dest_ep_id, args.src_dir, args.dest_dir, True)
# clean()
eps = multiple_endpoints() # hardcoded ep values
clean(eps)
# *** Example run ***
# python generate_data.py $CLIENT_ID /datasets/ /data/user/mmoo97/TEST_TRANSFERS/ -l
# 01 -t $TOKEN -r /perftest/uab_rc/ -wc
>>>>>>> Stashed changes
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment