BmnRoot
Loading...
Searching...
No Matches
transfer_raw_data.py File Reference

Go to the source code of this file.

Namespaces

namespace  transfer_raw_data
 

Functions

 transfer_raw_data.argument_parser ()
 
 transfer_raw_data.transfer_file (source_file_path, source_storage_url, destination_file_path, destination_storage_url, destination_run_storage_id, source_file_size, source_file_checksum)
 

Variables

 transfer_raw_data.run_number
 
 transfer_raw_data.source_storage
 
 transfer_raw_data.destination_storage
 
 transfer_raw_data.file_force
 
 transfer_raw_data.file_delete
 
 transfer_raw_data.config = json.load(open("file_catalogue.json"))
 
 transfer_raw_data.conn = psycopg2.connect(("dbname=%s user=%s host=%s password=%s") % (config["db_name"], config["db_user"], config["db_host"], config["db_pass"]))
 
 transfer_raw_data.cursor = conn.cursor()
 
 transfer_raw_data.src_run_storage_id
 
 transfer_raw_data.source_storage_path
 
 transfer_raw_data.source_storage_url
 
 transfer_raw_data.dest_run_storage_id
 
 transfer_raw_data.destination_storage_path
 
 transfer_raw_data.destination_storage_url
 
 transfer_raw_data.source_files = cursor.fetchall()
 
 transfer_raw_data.destination_files = cursor.fetchall()
 
list transfer_raw_data.destination_matches = []
 
 transfer_raw_data.file_list = open("transfer_raw_data.txt", "w")
 
int transfer_raw_data.iter_src = -1
 
 transfer_raw_data.src_file_path
 
 transfer_raw_data.src_file_size
 
 transfer_raw_data.src_file_checksum
 
 transfer_raw_data.src_file_end = src_file_path.replace(source_storage_path,'')
 
int transfer_raw_data.iter_dest = 0
 
 transfer_raw_data.dest_file_path = destination_storage_path + src_file_end
 
 transfer_raw_data.dest_file_size
 
 transfer_raw_data.dest_file_checksum
 
 transfer_raw_data.file