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] Fix needed for python3: Use of subprocess instead of commands #35818

Merged
merged 1 commit into from
Oct 26, 2021
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
1 change: 0 additions & 1 deletion L1Trigger/Configuration/python/customiseUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import FWCore.ParameterSet.VarParsing as VarParsing
import os
import sys
import commands
##############################################################################
# customisations for L1T utilities
#
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TCommon/scripts/optionsL1T.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import FWCore.ParameterSet.VarParsing as VarParsing
import os
import sys
import commands
options = VarParsing.VarParsing ('analysis')
options = VarParsing.VarParsing ('analysis')
options.register ('ntuple', "", VarParsing.VarParsing.multiplicity.singleton, VarParsing.VarParsing.varType.string, "The output ntuple file name")
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TCommon/test/reEmul.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
from Configuration.Eras.Modifier_stage2L1Trigger_cff import stage2L1Trigger
import os
import sys
import commands

options = VarParsing.VarParsing ('analysis')

Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TCommon/test/runL1T.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
process = cms.Process("L1TMuonEmulation", Run2_2016)
import os
import sys
import commands

process.load("FWCore.MessageLogger.MessageLogger_cfi")

Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuon/test/runMuon.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
process = cms.Process("L1TMuonEmulation", Run2_2016)
import os
import sys
import commands

process.load("FWCore.MessageLogger.MessageLogger_cfi")

Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonBarrel/test/runMuonBarrel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
process = cms.Process("L1TMuonEmulation")
import os
import sys
import commands

process.load("FWCore.MessageLogger.MessageLogger_cfi")

Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonBarrel/test/runMuonBarrel_o2o.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
process = cms.Process("L1TMuonEmulationO2O")
import os
import sys
import commands

process.load("FWCore.MessageLogger.MessageLogger_cfi")

Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonEndCap/test/RunTrackFinder_MC.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# ## Basic (but usually unnecessary) imports
# import os
# import sys
# import commands

import subprocess

Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonEndCap/test/RunTrackFinder_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import FWCore.ParameterSet.Config as cms
import os
import sys
import commands
import subprocess

process = cms.Process('L1TMuonEmulation')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import FWCore.ParameterSet.Config as cms
import os
import sys
import commands
import subprocess

process = cms.Process('L1TMuonEmulation')
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonOverlap/test/expert/mergeGPsXMLFiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
process = cms.Process("OMTFEmulation")
import os
import sys
import commands

process.load("FWCore.MessageLogger.MessageLogger_cfi")

Expand Down
4 changes: 2 additions & 2 deletions L1Trigger/L1TMuonOverlap/test/expert/runOMTFPatternMaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
process = cms.Process("OMTFEmulation")
import os
import sys
import commands
#import subprocess

verbose = False

Expand Down Expand Up @@ -72,7 +72,7 @@
process.source.fileNames = cms.untracked.vstring()
path = "/home/akalinow/scratch/CMS/OverlapTrackFinder/Crab/SingleMuFullEta/721_FullEta_v4/data/"
command = "ls "+path+"/SingleMu_10_?_*"
fileList = commands.getoutput(command).split("\n")
fileList = subprocess.getoutput(command).split("\n")
process.source.fileNames = cms.untracked.vstring()
for aFile in fileList:
process.source.fileNames.append('file:'+aFile)
Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TMuonOverlap/test/runMuonOverlap.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
process = cms.Process("L1TMuonEmulation")
import os
import sys
import commands

process.load("FWCore.MessageLogger.MessageLogger_cfi")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
process = cms.Process("L1TMuonEmulation")
import os
import sys
import commands
import re
from os import listdir
from os.path import isfile, join
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
process = cms.Process("L1TMuonEmulation")
import os
import sys
import commands
import re
from os import listdir
from os.path import isfile, join
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
process = cms.Process("L1TMuonEmulation")
import os
import sys
import commands
import re
from os import listdir
from os.path import isfile, join
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
process = cms.Process("L1TMuonEmulation")
import os
import sys
#import commands

process.load("FWCore.MessageLogger.MessageLogger_cfi")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
process = cms.Process("L1TMuonEmulation")
import os
import sys
#import commands

process.load("FWCore.MessageLogger.MessageLogger_cfi")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
process = cms.Process("L1TMuonEmulation")
import os
import sys
#import commands

process.load("FWCore.MessageLogger.MessageLogger_cfi")

Expand Down
1 change: 0 additions & 1 deletion L1Trigger/L1TTwinMux/test/runMuonBarrel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
process = cms.Process("L1TMuonEmulation")
import os
import sys
import commands

process.load("FWCore.MessageLogger.MessageLogger_cfi")

Expand Down