From df42dbb9fc62107abcfd3a4c7009252063628a3e Mon Sep 17 00:00:00 2001 From: rkansal47 Date: Thu, 24 Aug 2023 08:24:12 -0500 Subject: [PATCH] black --- src/HHbbVV/VBF_binder/VBFVectorTesting.ipynb | 1 + src/HHbbVV/VBF_binder/VBFgenInfoTests.ipynb | 5 ++--- src/HHbbVV/scale_factors/VV_reweighting.ipynb | 7 ++++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/HHbbVV/VBF_binder/VBFVectorTesting.ipynb b/src/HHbbVV/VBF_binder/VBFVectorTesting.ipynb index 25fb0fea..2cc24218 100644 --- a/src/HHbbVV/VBF_binder/VBFVectorTesting.ipynb +++ b/src/HHbbVV/VBF_binder/VBFVectorTesting.ipynb @@ -757,6 +757,7 @@ "import vector\n", "import numpy as np\n", "\n", + "\n", "# Define a function to convert pt, eta, phi, mass to a vector object\n", "def to_vector(pt, eta, phi, mass):\n", " return vector.obj(pt=pt, eta=eta, phi=phi, mass=mass)\n", diff --git a/src/HHbbVV/VBF_binder/VBFgenInfoTests.ipynb b/src/HHbbVV/VBF_binder/VBFgenInfoTests.ipynb index 1bf65432..a44a88e5 100644 --- a/src/HHbbVV/VBF_binder/VBFgenInfoTests.ipynb +++ b/src/HHbbVV/VBF_binder/VBFgenInfoTests.ipynb @@ -676,6 +676,7 @@ " df[(\"vbfphiSorted\" + method, 1)],\n", " )\n", "\n", + "\n", "# Define a function to create the required table\n", "def display_table(df, method):\n", " # Initialize a string to store the table\n", @@ -3509,6 +3510,7 @@ "Hbb_Txbb_values = pd.concat([Hbb_Txbb_values_0, Hbb_Txbb_values_1])\n", "HVV_Txbb_values = pd.concat([HVV_Txbb_values_0, HVV_Txbb_values_1])\n", "\n", + "\n", "# Compute delta R for each combination\n", "def delta_r(eta1, phi1, eta2, phi2):\n", " deta = eta1 - eta2\n", @@ -4449,13 +4451,11 @@ " # Extract columns with R1...R2 format\n", " # print(column, 'R1' in str(column) and 'R2' in str(column))\n", " if \"vbfR\" in str(column):\n", - "\n", " l = len(df[column])\n", "\n", " # Use regex to extract R1 and R2 values from column name\n", " match = re.search(r\"R1([\\d\\.]+)R2([\\d\\.]+)\", str(column))\n", " if match:\n", - "\n", " R1 = float(match.group(1))\n", " R2 = float(match.group(2))\n", "\n", @@ -4474,7 +4474,6 @@ "\n", "\n", "def plot_heatmap(data, title=\"Num preselected events with 1 or 2 gen quark matched vbf jets\"):\n", - "\n", " # Define grid\n", " R1_vals = sorted(list(set(data[:, 1])))\n", " R2_vals = sorted(list(set(data[:, 2])))\n", diff --git a/src/HHbbVV/scale_factors/VV_reweighting.ipynb b/src/HHbbVV/scale_factors/VV_reweighting.ipynb index 401e4a34..0056984e 100644 --- a/src/HHbbVV/scale_factors/VV_reweighting.ipynb +++ b/src/HHbbVV/scale_factors/VV_reweighting.ipynb @@ -900,7 +900,12 @@ " return ratio_smeared_lookups, ratio_lnN_smeared_lookups, ratio_sys_up, ratio_sys_down\n", "\n", "\n", - "(ratio_smeared_lookups, ratio_lnN_smeared_lookups, ratio_sys_up, ratio_sys_down,) = (\n", + "(\n", + " ratio_smeared_lookups,\n", + " ratio_lnN_smeared_lookups,\n", + " ratio_sys_up,\n", + " ratio_sys_down,\n", + ") = (\n", " [],\n", " [],\n", " [],\n",