Loading crossbow/crossbowOlcf.py +1 −2 Original line number Diff line number Diff line Loading @@ -56,8 +56,7 @@ class crossbowOlcf(object): print 'Please go to this URL and login: %s' % url #get auth code and download refresh tokens get_input = getattr(__builtins__, 'raw_input', input) auth_code = get_input('Please enter the code you get after login here: ').strip() auth_code = raw_input('Please enter the code you get after login here: ').strip() ssh_stdin, ssh_stdout, ssh_stderr = \ self.ssh.exec_command("export PATH=/ccs/home/iamshang/anaconda2/bin:/ccs/home/iamshang/anaconda2/lib/python2.7/site-packages:$PATH;\ Loading mnist_example/run_experiment.py +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ if 'mnist_test.csv' not in resources: olcf = crossbowOlcf('rhea') #download refresh token to OLCF olcf.get_globus_tokens(olcf_path='./') olcf.get_globus_tokens(crossbow_path='./') #download mnist dataset if it doesn't exist olcf_endpoint = 'ef1a9560-7ca1-11e5-992c-22000b96db58' Loading yelp_example/run_experiment.py +3 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,9 @@ if 'yelp_academic_dataset_review.json' not in resources: #connect to OLCF before download starts olcf = crossbowOlcf('rhea') #download refresh token to OLCF olcf.get_globus_tokens(crossbow_path='./') #download yelp dataset if it doesn't exist olcf_endpoint = 'ef1a9560-7ca1-11e5-992c-22000b96db58' path = '/~/' Loading Loading
crossbow/crossbowOlcf.py +1 −2 Original line number Diff line number Diff line Loading @@ -56,8 +56,7 @@ class crossbowOlcf(object): print 'Please go to this URL and login: %s' % url #get auth code and download refresh tokens get_input = getattr(__builtins__, 'raw_input', input) auth_code = get_input('Please enter the code you get after login here: ').strip() auth_code = raw_input('Please enter the code you get after login here: ').strip() ssh_stdin, ssh_stdout, ssh_stderr = \ self.ssh.exec_command("export PATH=/ccs/home/iamshang/anaconda2/bin:/ccs/home/iamshang/anaconda2/lib/python2.7/site-packages:$PATH;\ Loading
mnist_example/run_experiment.py +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ if 'mnist_test.csv' not in resources: olcf = crossbowOlcf('rhea') #download refresh token to OLCF olcf.get_globus_tokens(olcf_path='./') olcf.get_globus_tokens(crossbow_path='./') #download mnist dataset if it doesn't exist olcf_endpoint = 'ef1a9560-7ca1-11e5-992c-22000b96db58' Loading
yelp_example/run_experiment.py +3 −0 Original line number Diff line number Diff line Loading @@ -23,6 +23,9 @@ if 'yelp_academic_dataset_review.json' not in resources: #connect to OLCF before download starts olcf = crossbowOlcf('rhea') #download refresh token to OLCF olcf.get_globus_tokens(crossbow_path='./') #download yelp dataset if it doesn't exist olcf_endpoint = 'ef1a9560-7ca1-11e5-992c-22000b96db58' path = '/~/' Loading