Skip to content

Commit 75fbc8f

Browse files
committed
cleaning
1 parent 57dae26 commit 75fbc8f

File tree

3 files changed

+15
-28
lines changed

3 files changed

+15
-28
lines changed

madanalysis/core/script_stack.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424

2525
from __future__ import absolute_import
2626
import logging
27-
import glob
2827
import os
29-
import sys
30-
import shutil
3128

3229
class ScriptStack:
3330

madanalysis/interpreter/interpreter_base.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,23 @@
2424

2525
""" A file containing different extension of the cmd basic python library"""
2626
from __future__ import absolute_import
27-
from madanalysis.core.script_stack import ScriptStack
28-
from madanalysis.interpreter.history import History
2927

3028
# Python import
3129
import cmd
3230
import logging
3331
import os
34-
import subprocess
3532
import readline
33+
import subprocess
34+
3635
from six.moves import range
3736

37+
from madanalysis.core.script_stack import ScriptStack
38+
from madanalysis.interpreter.history import History
39+
40+
41+
class InvalidCmd(Exception):
42+
"""expected error for wrong command"""
43+
3844

3945
#===============================================================================
4046
# InterpreterBase
@@ -46,15 +52,6 @@ class InterpreterBase(cmd.Cmd):
4652
internal call to cmdline, path completion,...
4753
this class should be MG5 independent"""
4854

49-
class InvalidCmd(Exception):
50-
"""expected error for wrong command"""
51-
pass
52-
53-
debug_output = 'debug'
54-
error_debug = """Please report this bug to developers\nMore information can be found in '%s'."""
55-
error_debug += """\nPlease attach this file to your report."""
56-
keyboard_stop_msg = """Stopping all current operations. Program must exited. Please type 'exit'"""
57-
5855
interpreter_operators = ['(',')','[',']','&','|','&',\
5956
'^','!','=','>','<',',']
6057

madanalysis/misc/run_recast.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,12 @@
3838
from string_tools import StringTools
3939

4040
from madanalysis.configuration.delphes_configuration import DelphesConfiguration
41-
from madanalysis.configuration.delphesMA5tune_configuration import (
42-
DelphesMA5tuneConfiguration,
43-
)
41+
from madanalysis.configuration.delphesMA5tune_configuration import DelphesMA5tuneConfiguration
4442
from madanalysis.install.detector_manager import DetectorManager
4543
from madanalysis.IOinterface.folder_writer import FolderWriter
4644
from madanalysis.IOinterface.job_writer import JobWriter
4745
from madanalysis.IOinterface.library_writer import LibraryWriter
48-
from madanalysis.misc.histfactory_reader import (
49-
HF_Background,
50-
HF_Signal,
51-
construct_histfactory_dictionary,
52-
)
46+
from madanalysis.misc.histfactory_reader import HF_Background, HF_Signal, construct_histfactory_dictionary
5347
from madanalysis.misc.theoretical_error_setup import error_dict_setup
5448

5549
# pylint: disable=logging-fstring-interpolation,import-outside-toplevel
@@ -541,7 +535,9 @@ def run_SimplifiedFastSim(self, dataset, card, analysislist):
541535
self.logger.error("run over '" + dataset.name + "' aborted.")
542536
return False
543537
self.logger.info(" *******************************************************")
544-
538+
539+
os.environ["FASTJET_FLAG"] = ""
540+
545541
if not os.path.isdir(self.dirname + "/Output/SAF/" + dataset.name):
546542
os.mkdir(self.dirname + "/Output/SAF/" + dataset.name)
547543
for analysis in analysislist:
@@ -1126,10 +1122,7 @@ def compute_cls(self, analyses, dataset):
11261122
import spey
11271123
from spey.system.webutils import get_bibtex
11281124

1129-
from .statistical_models import (
1130-
compute_poi_upper_limits,
1131-
initialise_statistical_models,
1132-
)
1125+
from .statistical_models import compute_poi_upper_limits, initialise_statistical_models
11331126

11341127
## Checking whether the CLs module can be used
11351128
ET = self.check_xml_scipy_methods()

0 commit comments

Comments
 (0)