diff --git a/dynamut/examples.py b/dynamut/examples.py index 1875850..441ca31 100644 --- a/dynamut/examples.py +++ b/dynamut/examples.py @@ -68,19 +68,4 @@ get_results(my_url_file_single , host_url = my_host , output_dir = my_outdir , outfile_suffix = my_suffix) -#%%################################################################### -url = 'http://biosig.unimelb.edu.au/dynamut/results_prediction/161296287365' -host_url = 'http://biosig.unimelb.edu.au' -prediction_number = re.search(r'([0-9]+$)', url).group(0) -print(prediction_number) -dynamut_results_dir = '/home/tanu/git/LSHTM_analysis/dynamut/dynamut_results' -tgz_url = f"{host_url}/dynamut/results_file/results_" + prediction_number + '.tar.gz' -print(tgz_url) -outfile_suffix = 'foo' - - -target_path = dynamut_results_dir + '/' + outfile_suffix + '_results_' + prediction_number + '.tar.gz' -response_tgz = requests.get(tgz_url, stream = True) -if response_tgz.status_code == 200: - with open(target_path, 'wb') as f: - f.write(response_tgz.raw.read()) +#%%################################################################### \ No newline at end of file