Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Oct 1, 2024
1 parent 953cca7 commit e1fdfcb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions k4FWCore/scripts/k4run
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ def main():
# Apply fixes from the k4FWCore wrapper

from k4FWCore import ApplicationMgr

ApplicationMgr().fix_properties()

from Gaudi.Main import gaudimain
Expand Down
10 changes: 5 additions & 5 deletions python/k4FWCore/ApplicationMgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ def fix_properties(self):
except AttributeError:
self._mgr.EventLoop = EventLoopMgr(Warnings=False)

if 'MetadataSvc' in self._mgr.allConfigurables:
self._mgr.ExtSvc.append(self._mgr.allConfigurables['MetadataSvc'])
if "MetadataSvc" in self._mgr.allConfigurables:
self._mgr.ExtSvc.append(self._mgr.allConfigurables["MetadataSvc"])

if 'IOSvc' not in self._mgr.allConfigurables:
if "IOSvc" not in self._mgr.allConfigurables:
return
if not isinstance(self._mgr.allConfigurables['IOSvc'], IOSvc):
if not isinstance(self._mgr.allConfigurables["IOSvc"], IOSvc):
raise TypeError("The IOSvc is not an instance of IOSvc")
conf = self._mgr.allConfigurables['IOSvc']
conf = self._mgr.allConfigurables["IOSvc"]

props = conf.getPropertiesWithDescription()
reader = writer = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
EvtMax=-1,
ExtSvc=[EventDataSvc("EventDataSvc")],
OutputLevel=INFO,
)
)

0 comments on commit e1fdfcb

Please sign in to comment.