Skip to content

Commit 5406110

Browse files
committed
Code style
1 parent 6c92359 commit 5406110

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

madminer/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,15 +1149,15 @@ def reweight_existing_sample(
11491149
run_mg_reweighting(
11501150
mg_process_directory,
11511151
run_name=run_name,
1152-
reweight_card_file=mg_process_directory+"/"+reweight_card_file,
1152+
reweight_card_file=mg_process_directory + "/" + reweight_card_file,
11531153
initial_command=initial_command,
1154-
log_file=log_directory+"/"+log_file_run,
1154+
log_file=log_directory + "/" + log_file_run,
11551155
)
11561156
logger.info(
11571157
"Finished running reweighting! Please check that events were succesfully reweighted in the following "
11581158
"folder:\n\n %s/Events/%s \n\n",
11591159
mg_process_directory,
1160-
run_name
1160+
run_name,
11611161
)
11621162

11631163
def _check_pdf_or_scale_variation(self, systematics):

madminer/utils/interfaces/mg.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -523,13 +523,7 @@ def setup_mg_reweighting_with_scripts(
523523
return call_instruction
524524

525525

526-
def run_mg_reweighting(
527-
mg_process_directory,
528-
run_name,
529-
reweight_card_file=None,
530-
initial_command=None,
531-
log_file=None,
532-
):
526+
def run_mg_reweighting(mg_process_directory, run_name, reweight_card_file=None, initial_command=None, log_file=None):
533527
"""
534528
Runs MG reweighting.
535529
@@ -576,8 +570,7 @@ def run_mg_reweighting(
576570
initial_command = initial_command + "; "
577571

578572
_ = call_command(
579-
"{}{}/bin/madevent reweight {} -f".format(initial_command, mg_process_directory, run_name),
580-
log_file=log_file
573+
"{}{}/bin/madevent reweight {} -f".format(initial_command, mg_process_directory, run_name), log_file=log_file
581574
)
582575

583576

0 commit comments

Comments
 (0)