Skip to content

Commit

Permalink
autopep8 action fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mesmith75 authored May 20, 2024
1 parent 6ac6327 commit 080f2b9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions ganga/GangaLHCb/Lib/LHCbDataset/BKQuery.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
# \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
import os

Check warning on line 2 in ganga/GangaLHCb/Lib/LHCbDataset/BKQuery.py

View workflow job for this annotation

GitHub Actions / Linting

F401 'os' imported but unused
import datetime

Check warning on line 3 in ganga/GangaLHCb/Lib/LHCbDataset/BKQuery.py

View workflow job for this annotation

GitHub Actions / Linting

F401 'datetime' imported but unused
from GangaCore.Core.exceptions import GangaException
Expand All @@ -14,7 +14,7 @@
from GangaLHCb.Lib.LHCbDataset import LHCbDataset, LHCbCompressedDataset
from GangaLHCb.Lib.Backends.Dirac import filterLFNsBySE
logger = getLogger()
#\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
# \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#


class BKQuery(GangaObject):
Expand Down Expand Up @@ -124,13 +124,13 @@ def getDatasetMetadata(self):
if self.selection:
msg = 'selection not supported for type="%s".' % self.type
raise GangaException(msg)
cmd = "getDataset('%s','%s','%s','%s','%s','%s')" % (self.path, self.dqflag,
self.type, self.startDate, self.endDate, self.selection)
cmd = "getDataset('%s','%s','%s','%s','%s','%s', '%s')" % (self.path, self.dqflag,
self.type, self.startDate, self.endDate, self.selection, self.SMOG2)

Check failure on line 128 in ganga/GangaLHCb/Lib/LHCbDataset/BKQuery.py

View workflow job for this annotation

GitHub Actions / Linting

E501 line too long (135 > 127 characters)
from GangaCore.GPIDev.Lib.GangaList.GangaList import GangaList
knownLists = [tuple, list, GangaList]
if isType(self.dqflag, knownLists):
cmd = "getDataset('%s',%s,'%s','%s','%s','%s')" % (self.path, self.dqflag,
self.type, self.startDate, self.endDate, self.selection)
cmd = "getDataset('%s',%s,'%s','%s','%s','%s', '%s')" % (self.path, self.dqflag,
self.type, self.startDate, self.endDate, self.selection, self.SMOG2)

Check failure on line 133 in ganga/GangaLHCb/Lib/LHCbDataset/BKQuery.py

View workflow job for this annotation

GitHub Actions / Linting

E501 line too long (137 > 127 characters)

try:
value = get_result(cmd, 'BK query error.', credential_requirements=self.credential_requirements)
Expand Down Expand Up @@ -239,7 +239,7 @@ def getDataset(self, compressed=True, SE=None):

return addProxy(ds)

#\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
# \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#


class BKQueryDict(GangaObject):
Expand Down Expand Up @@ -329,4 +329,4 @@ def getDataset(self):

return addProxy(ds)

#\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
# \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\#
4 changes: 2 additions & 2 deletions ganga/GangaLHCb/Lib/Server/DiracLHCbCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# DiracLHCb commands
# /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

#def getRootVersions(): output( dirac.getRootVersions() )
# def getRootVersions(): output( dirac.getRootVersions() )

#def getSoftwareVersions(): output( dirac.getSoftwareVersions() )
# def getSoftwareVersions(): output( dirac.getSoftwareVersions() )


@diracCommand

Check warning on line 10 in ganga/GangaLHCb/Lib/Server/DiracLHCbCommands.py

View workflow job for this annotation

GitHub Actions / Linting

F821 undefined name 'diracCommand'
Expand Down

0 comments on commit 080f2b9

Please sign in to comment.