def test_explicit_staging(): unsorted_file = File( "globus://03d7d06a-cb6b-11e8-8c6a-0a1d4c5c824a/unsorted.txt") print("File plain ", unsorted_file) print("Filepath before stage_in ", unsorted_file.filepath) dfu = unsorted_file.stage_in() dfu.result() print("DFU result: ", dfu.result()) print(unsorted_file.filepath)
def test_explicit_staging(): unsorted_file = File( "globus://037f054a-15cf-11e8-b611-0ac6873fc732/unsorted.txt") print("File plain ", unsorted_file) print("Filepath before stage_in ", unsorted_file.filepath) dfu = unsorted_file.stage_in() dfu.result() print("DFU result: ", dfu.result()) print(unsorted_file.filepath)
def test_explicit_staging(): """Test explicit staging via Globus. Create a remote input file that points to unsorted.txt on a publicly shared endpoint. """ unsorted_file = File("globus://03d7d06a-cb6b-11e8-8c6a-0a1d4c5c824a/unsorted.txt") # Create a remote output file that points to sorted.txt on the go#ep1 Globus endpoint sorted_file = File( "globus://ddb59aef-6d04-11e5-ba46-22000b92c6ec/~/sorted.txt") dfu = unsorted_file.stage_in() dfu.result() f = sort_strings(inputs=[dfu], outputs=[sorted_file]) f.result() fs = sorted_file.stage_out() fs.result()