Skip to content

Commit

Permalink
Just formatting for python
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Wardle committed Apr 11, 2024
1 parent c1b4bd4 commit 8209cb5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/Datacard.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import six
from collections import OrderedDict


class Datacard:
"""
Description:
Expand Down
2 changes: 1 addition & 1 deletion python/ModelTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ def doFillNuisPdfsAndSets(self):
self.out.defineSet("globalObservables", gobsVars)
else: # doesn't work for too many nuisances :-(
# avoid duplicating _Pdf in list
setNuisPdf = list(dict.fromkeys(keywords([self.getSafeNormName(n) for (n, nf, p, a, e) in self.DC.systs])))
setNuisPdf = list(dict.fromkeys(keywords([self.getSafeNormName(n) for (n, nf, p, a, e) in self.DC.systs])))
self.doSet("nuisances", ",".join(["%s" % self.getSafeNormName(n) for (n, nf, p, a, e) in self.DC.systs]))
self.doObj("nuisancePdf", "PROD", ",".join(["%s_Pdf" % n for n in setNuisPdf]))
self.doSet("globalObservables", ",".join(self.globalobs))
Expand Down
1 change: 1 addition & 0 deletions python/NuisanceModifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from collections import OrderedDict


def appendMap(tmap, k, thing):
if k in list(tmap.keys()):
if thing not in tmap[k]:
Expand Down

0 comments on commit 8209cb5

Please sign in to comment.