BmnRoot
Loading...
Searching...
No Matches
move_bad_runs Namespace Reference

Variables

int THRESHOLD = 5 * 1024 * 1024 * 1024
 
str BAD_DIR = "beam-bad"
 
str pattern = r'^run_(.*)_(\d+)_ev\d+_p\d+\.data$'
 
list data_files
 
 run_groups = defaultdict(list)
 
 match = re.match(pattern, f)
 
 label
 
 run_num_str
 
 run_num = int(run_num_str)
 
int moved_count = 0
 
 total_size = sum(os.path.getsize(f) for f in files)
 
 num_files = len(files)
 

Variable Documentation

◆ BAD_DIR

str move_bad_runs.BAD_DIR = "beam-bad"

Definition at line 10 of file move_bad_runs.py.

◆ data_files

list move_bad_runs.data_files
Initial value:
1= [
2 f for f in os.listdir('.')
3 if os.path.isfile(f) and f.startswith('run_') and f.endswith('.data')
4]

Definition at line 23 of file move_bad_runs.py.

◆ label

move_bad_runs.label

Definition at line 33 of file move_bad_runs.py.

◆ match

move_bad_runs.match = re.match(pattern, f)

Definition at line 31 of file move_bad_runs.py.

◆ moved_count

int move_bad_runs.moved_count = 0

Definition at line 40 of file move_bad_runs.py.

◆ num_files

move_bad_runs.num_files = len(files)

Definition at line 47 of file move_bad_runs.py.

◆ pattern

str move_bad_runs.pattern = r'^run_(.*)_(\d+)_ev\d+_p\d+\.data$'

Definition at line 20 of file move_bad_runs.py.

◆ run_groups

move_bad_runs.run_groups = defaultdict(list)

Definition at line 29 of file move_bad_runs.py.

◆ run_num

move_bad_runs.run_num = int(run_num_str)

Definition at line 34 of file move_bad_runs.py.

◆ run_num_str

move_bad_runs.run_num_str

Definition at line 33 of file move_bad_runs.py.

◆ THRESHOLD

int move_bad_runs.THRESHOLD = 5 * 1024 * 1024 * 1024

Definition at line 9 of file move_bad_runs.py.

◆ total_size

move_bad_runs.total_size = sum(os.path.getsize(f) for f in files)

Definition at line 46 of file move_bad_runs.py.