Skip to content

Commit

Permalink
fix string when no energy is passed (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
lenzip authored May 29, 2024
1 parent 1ca8f8c commit 2326d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmsstyle/cmsstyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

def SetEnergy(energy, unit = "TeV"):
global cms_energy
cms_energy = str(energy) + " " + unit
cms_energy = str(energy) + " " + unit if energy != "" else ""


def SetLumi(lumi, unit="fb", round_lumi=False):
Expand Down

0 comments on commit 2326d44

Please sign in to comment.