Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
harrypuuter committed May 8, 2024
1 parent 8d5bcc8 commit c9b0435
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Dumbledraw/dumbledraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,14 @@ def DrawChannelCategoryLabel(
begin_left = 0.145
latex2.DrawLatex(begin_left, 0.960, text)

def DrawCMS(self, position=0, preliminary=True, subtext="", own_work=False, thesisstyle=False):
def DrawCMS(
self,
position=0,
preliminary=True,
subtext="",
own_work=False,
thesisstyle=False,
):
additional_string = ""
if subtext != "":
additional_string = subtext
Expand Down Expand Up @@ -868,7 +875,9 @@ def setGraphStyle(
hist[0].SetLineStyle(linestyle)
hist[0].SetFillStyle(fillstyle)
else:
raise Exception("No object with name %s found in booked histograms" % name)
raise Exception(
"No object with name %s found in booked histograms" % name
)

# creates stack from registered histograms defined via name or group name
def create_stack(self, hist_names, name, group_name="invisible"):
Expand Down

0 comments on commit c9b0435

Please sign in to comment.