|
11 | 11 | import json |
12 | 12 | import os |
13 | 13 | import sys |
| 14 | +from enum import IntEnum, auto |
14 | 15 |
|
15 | 16 | import numpy as np # pylint: disable=import-error |
16 | 17 | import ROOT # pylint: disable=import-error |
17 | | -from enum import IntEnum, auto |
| 18 | + |
18 | 19 | sys.path.insert(0, '..') |
19 | | -from cut_variation import CutVarMinimiser |
20 | | -from cut_variation import MinimisationStatus |
| 20 | +from cut_variation import CutVarMinimiser, MinimisationStatus |
21 | 21 | from style_formatter import set_object_style |
22 | 22 |
|
23 | 23 | # pylint: disable=no-member,too-many-locals,too-many-statements |
@@ -252,9 +252,9 @@ def main(config): |
252 | 252 | print("\0\33[33mWARNING! main(): the raw yield uncertainties vector is not monotonous. Check the input for stability.\0\33[0m") |
253 | 253 | print(f"raw yield uncertainties vector elements = {unc_rawy}\n") |
254 | 254 | if not (np.all(effp[1:] > effp[:-1]) or np.all(effp[1:] < effp[:-1])): |
255 | | - sys.exit(f"\33[31mFatal error: the prompt efficiency vector is not monotonous. Check the input. Exit.\33[0m") |
| 255 | + sys.exit("\33[31mFatal error: the prompt efficiency vector is not monotonous. Check the input. Exit.\33[0m") |
256 | 256 | if not (np.all(effnp[1:] > effnp[:-1]) or np.all(effnp[1:] < effnp[:-1])): |
257 | | - sys.exit(f"\33[31mFatal error: the nonprompt efficiency vector is not monotonous. Check the input. Exit.\33[0m") |
| 257 | + sys.exit("\33[31mFatal error: the nonprompt efficiency vector is not monotonous. Check the input. Exit.\33[0m") |
258 | 258 |
|
259 | 259 | minimiser = CutVarMinimiser(rawy, effp, effnp, unc_rawy, unc_effp, unc_effnp) |
260 | 260 | status = minimiser.minimise_system(cfg["minimisation"]["correlated"]) |
|
0 commit comments