Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/ci/run_with_singularity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fi
if [[ -d /ceph ]]; then
export APPTAINER_BIND="${APPTAINER_BIND},/ceph"
fi
CONTAINER=/cvmfs/unpacked.cern.ch/gitlab-registry.cern.ch/bendavid/cmswmassdocker/wmassdevrolling\:v61
CONTAINER=/cvmfs/unpacked.cern.ch/gitlab-registry.cern.ch/bendavid/cmswmassdocker/wmassdevrolling\:v67

# Kerberos cache setup
# Assuming kinit was already done on the host!
Expand Down
4 changes: 2 additions & 2 deletions scripts/plotting/makePdfUncPlot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import h5py
import hist
import numpy as np
from matplotlib import cm
from matplotlib import colormaps

from wremnants.postprocessing import pdf_tools
from wremnants.utilities import theory_utils
Expand Down Expand Up @@ -112,7 +112,7 @@
pdfInfo[pdf]["scale"] if "scale" in pdfInfo[pdf] else 1.0 for pdf in args.pdfs
]
names = [[pdfName + r" $\pm1\sigma$", "", ""] for pdfName in pdfNames]
cmap = cm.get_cmap("tab10")
cmap = colormaps["tab10"]
colors = [[cmap(i)] * 3 for i in range(len(args.pdfs))]

if "unrolled_gen_hel" in args.obs:
Expand Down
4 changes: 2 additions & 2 deletions scripts/plotting/makeScetlibComparisons.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import hist
import lz4.frame
from matplotlib import cm
from matplotlib import colormaps

from wremnants.production import helicity_utils
from wremnants.utilities import parsing
Expand Down Expand Up @@ -217,7 +217,7 @@
{"massVgen": s[0 : x.axes["massVgen"].size : hist.sum]}
]

cmap = cm.get_cmap("tab10")
cmap = colormaps["tab10"]
lookup["minnlo"]["colors"] = ["red"] + [
cmap(i) for i in range(len(args.minnlo_files) - 1)
]
Expand Down
4 changes: 2 additions & 2 deletions wremnants/utilities/styles/styles.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import copy

import matplotlib.cm as cm
from matplotlib import colormaps

from wums import boostHistHelpers as hh
from wums import logging
Expand Down Expand Up @@ -818,7 +818,7 @@ def get_labels_colors_procs_sorted(procs):
"Rare",
][::-1]

cmap = cm.get_cmap("tab10")
cmap = colormaps["tab10"]

procs = sorted(
procs, key=lambda x: procs_sort.index(x) if x in procs_sort else len(procs_sort)
Expand Down