Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[L1] py2/3 compatibility:drop use of __future__ #46771

Merged
merged 1 commit into from
Nov 26, 2024
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# cfg file to pack a GT EVM record
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# cfg file to unpack RAW L1 GT EVM data

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# cfg file to pack a GT DAQ record
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# cfg file to produce L1GlobalTriggerRecord from a L1GlobalTriggerReadoutRecord
# when running on RAW data, one also unpack the data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# cfg file to run the L1GtTriggerMenuLite producer
# with the options set in UserOptions_cff.py
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# cfg file to unpack RAW L1 GT DAQ data
# the options set in "user choices" file
Expand Down
1 change: 0 additions & 1 deletion EventFilter/L1TRawToDigi/python/bmtfStage2Raw_cfi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms


Expand Down
1 change: 0 additions & 1 deletion EventFilter/L1TRawToDigi/test/pack_cmp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import ROOT
import sys

Expand Down
1 change: 0 additions & 1 deletion EventFilter/L1TRawToDigi/test/pack_cmp_etsums.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import ROOT
import sys

Expand Down
1 change: 0 additions & 1 deletion EventFilter/L1TRawToDigi/utils/unpackBuffers-CaloStage1.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# Auto generated configuration file
# using:
# Revision: 1.19
Expand Down
1 change: 0 additions & 1 deletion EventFilter/L1TRawToDigi/utils/unpackBuffers-CaloStage2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# Auto generated configuration file
# using:
# Revision: 1.19
Expand Down
1 change: 0 additions & 1 deletion EventFilter/L1TXRawToDigi/python/util/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
from __future__ import absolute_import
from .getRunInfo import getRunsForDate, getRunsNewer, today, daysAgo, day, getFilesForRun, runGetDatasetsAvailable

2 changes: 0 additions & 2 deletions EventFilter/L1TXRawToDigi/python/util/rrClient.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import
from __future__ import print_function
import re, json, datetime
from .rrapi import RRApi, RRApiError

Expand Down
1 change: 0 additions & 1 deletion EventFilter/L1TXRawToDigi/python/util/rrapi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import urllib, re, json, socket

"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms

import EventFilter.L1TXRawToDigi.util as util
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import sys
import os

Expand Down
1 change: 0 additions & 1 deletion L1Trigger/Configuration/python/L1Trigger_custom.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# customization fragments to be used with cmsDriver and hltGetConfiguration
#
# V.M. Ghete 2010-06-09 initial version
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/Configuration/python/customiseReEmul.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function

import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/Configuration/python/customiseSettings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import os.path
import FWCore.ParameterSet.Config as cms

Expand Down
1 change: 0 additions & 1 deletion L1Trigger/Configuration/python/customiseUtils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.VarParsing as VarParsing
import os
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/Configuration/test/L1GlobalTagTest_cfg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# cfg file to print the content of
# L1 trigger records from a global tag
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/GlobalTriggerAnalyzer/python/UserOptions_cff.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# configuration file fragment containing user choices
# for release to run, sample and data type to use in
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/GlobalTriggerAnalyzer/test/L1GtAnalyzer_cfg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# cfg file to run the L1 GT test analyzer according to
# the options set in "user choices"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# cfg file to test L1GtBeamModeFilter
# it requires as input:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# cfg file to run L1 Global Trigger emulator on a file containing the output of the
# GCT system and GMT system ("digi"), followed by the L1 trigger report
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# cfg file to pack (DigiToRaw) a GT DAQ record, unpack (RawToDigi) it back
# and compare the two set of digis
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# L1 Pattern Generator
# ====================
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# cfg file to run some technical trigger emulators/simulation, L1 Global Trigger emulator
# on a file containing the output of the GCT system and GMT system ("digi"), followed by
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/GlobalTriggerAnalyzer/test/L1GtTrigReport_cfg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# cfg file to run L1GtTrigReport on GT output file containing
# the readout record L1GlobalTriggerReadoutRecord
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1GctAnalyzer/test/gctLUTGenerator_cfg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms

import sys
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TCaloLayer1/test/testL1TCaloLayer1.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import os
import FWCore.ParameterSet.Config as cms

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/env python3

from __future__ import print_function
import argparse
import FWCore.ParameterSet.Config as cms
from importlib import import_module
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function
import os
import sys
import math
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function
import os
import sys
import math
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TCalorimeter/python/studyJets.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function
import os
import sys
import math
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TCalorimeter/test/generatePattern-Stage2MP.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# Auto generated configuration file
# using:
# Revision: 1.19
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TCommon/python/customiseDemo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms

import os
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TCommon/scripts/optionsL1T.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# L1T Command Line Options:
#
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TCommon/test/parse_dump_l1t_configs.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/python
from __future__ import print_function
import sys

# Parse the output of dump_l1t_configs.py, printing the nonempty records and hash values
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TCommon/test/reEmul.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# reEmul.py configurable test of L1T re-emulation
#
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TCommon/test/runStandardSequences.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# Auto generated configuration file
# using:
# Revision: 1.19
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TGlobal/test/Raw2Digi_uGTEmulation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# Auto generated configuration file
# using:
# Revision: 1.19
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
from __future__ import print_function
import sys

"""
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TGlobal/test/l1tGlobalEmulation_FromDigi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# Auto generated configuration file
# using:
# Revision: 1.19
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TGlobal/test/l1tGlobalEmulation_FromRAW.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# Auto generated configuration file
# using:
# Revision: 1.19
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TGlobal/test/runGTSummary.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function
import FWCore.ParameterSet.Config as cms

from Configuration.Eras.Era_Run2_2016_cff import Run2_2016
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TGlobal/test/runGlobalFakeInputProducer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
from __future__ import print_function
import sys

"""
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TGlobal/test/testVectorCode_data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python
from __future__ import print_function
import sys

"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# Auto generated configuration file
# using:
# Revision: 1.19
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonBarrel/test/kalmanTools/kmtfAnalysis.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import ROOT,itertools,math #
from array import array #
from DataFormats.FWLite import Events, Handle
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonBarrel/test/kalmanTools/makeEtaLuts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function

etaLUT0=[8.946,7.508,6.279,6.399]
etaLUT1=[-0.159,-0.116,-0.088,-0.128]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms


Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonBarrel/test/kalmanTools/makePTPhiLUTs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
from math import pi,floor


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms


Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonBarrel/test/kalmanTools/validation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import ROOT,itertools,math #
from array import array #
from DataFormats.FWLite import Events, Handle
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonEndCap/test/RunTrackFinder_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
## 11.02.16: Copied from https://raw.githubusercontent.com/dcurry09/EMTF8/master/L1Trigger/L1TMuonEndCap/test/runMuonEndCap.py

import FWCore.ParameterSet.Config as cms
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonEndCap/test/tools/make_anglelut.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# This cfg calls MakeAngleLUT which is obsolete and completely unused.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
#
# This cfg calls MakeAngleLUT which is obsolete and completely unused.
#
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonEndCap/test/tools/print_binary.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function
import sys

def main():
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonEndCap/test/tools/print_mode.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function
import sys

def main():
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonEndCap/test/tools/print_mode_inv.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function
import sys

def main():
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonEndCap/test/tools/print_quality_code.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function
import sys

def main():
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonEndCap/test/tools/print_sector.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python

from __future__ import print_function
import sys
from math import degrees, pi

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# Generate 2^6 = 64 entries
# a=12, b=23, c=34, d=13, e=14, f=24

Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonEndCap/test/unittests/FWLiteAnalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# Based on https://twiki.cern.ch/twiki/bin/view/CMSPublic/WorkBookFWLitePython
# Some snippets of codes are stolen from PhysicsTools/Heppy

from __future__ import print_function
from ROOT import gROOT, gSystem, AutoLibraryLoader
from DataFormats.FWLite import Events, Handle

Expand Down
1 change: 0 additions & 1 deletion L1Trigger/Phase2L1GMT/test/makeTrackConversionLUTs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#
# Description :

from __future__ import division
import math
import numpy as np
from collections import defaultdict, Counter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms

# LUT generator process
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import FWCore.ParameterSet.Config as cms

# options
Expand Down
1 change: 0 additions & 1 deletion L1TriggerConfig/L1GtConfigProducers/test/L1GtTester_cfg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# cfg file to test L1 GT records
#
# V M Ghete 2008 - 2010 - 2012
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# cfg file to test the online producer of L1GtTriggerMenuRcd

import FWCore.ParameterSet.Config as cms
Expand Down
1 change: 0 additions & 1 deletion L1TriggerConfig/Utilities/test/bmtfDump.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
import re
import os, sys, shutil
import subprocess
Expand Down
1 change: 0 additions & 1 deletion L1TriggerConfig/Utilities/test/caloL1Dump.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# select CALOL1_KEY from CMS_TRG_L1_CONF.L1_TRG_CONF_KEYS where ID='collisions2016_TSC/v206' ;
import re
import os, sys, shutil
Expand Down
1 change: 0 additions & 1 deletion L1TriggerConfig/Utilities/test/caloL2Dump.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# select CALOL2_KEY from CMS_TRG_L1_CONF.L1_TRG_CONF_KEYS where ID='collisions2016_TSC/v206' ;
import re
import os, sys, shutil
Expand Down
1 change: 0 additions & 1 deletion L1TriggerConfig/Utilities/test/dumpL1TCaloParams.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from __future__ import print_function
# to test the communication with DBS and produce the csctf configuration
import FWCore.ParameterSet.Config as cms

Expand Down
Loading