Skip to content

Commit

Permalink
autopep8 action fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mesmith75 authored Jul 8, 2024
1 parent 491e489 commit c7baa5a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions ganga/GangaCore/Core/GangaRepository/SubJobXMLList.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def load_subJobIndex(self):
new_data = self._registry.getIndexCache(self.__getitem__(subjob_id))
self._subjobIndexData[subjob_id] = new_data
continue
#self._subjobIndexData = {}
# self._subjobIndexData = {}
except Exception as err:
logger.debug("Subjob Index file open, error: %s" % err)
self._subjobIndexData = {}
Expand Down Expand Up @@ -328,7 +328,7 @@ def getMasterID(self):
except Exception as err:
try:
fqid = job_obj.id
except:
except BaseException:
fqid = "unknown"
else:
fqid = "unknown"
Expand All @@ -340,11 +340,11 @@ def _loadSubJobFromDisk(self, subjob_data):
subjob_data (str): filename for the subjob 'data' file we're interested in
"""
# For debugging where this was called from to try and push it to as high a level as possible at runtime
#print("SJXML Load")
#import traceback
# print("SJXML Load")
# import traceback
# traceback.print_stack()
# print("\n\n\n")
#import sys
# import sys
# sys.exit(-1)
job_obj = self.getSafeJob()
if job_obj is not None:
Expand Down Expand Up @@ -414,7 +414,9 @@ def _getItem(self, index):
if isinstance(x, IOError) and x.errno == errno.ENOENT:
raise IOError("Subobject %s not found: %s" % (index, x))
else:
raise RepositoryError(self._registry.repository, "IOError on loading subobject %s: %s" % (index, x))
raise RepositoryError(
self._registry.repository, "IOError on loading subobject %s: %s" %
(index, x))

from GangaCore.Core.GangaRepository.VStreamer import from_file

Expand Down Expand Up @@ -490,7 +492,7 @@ def getCachedData(self, index):
def getAllCachedData(self):
"""Get the cached data from the index for all subjobs"""
cached_data = []
#logger.debug("Cache: %s" % self._subjobIndexData)
# logger.debug("Cache: %s" % self._subjobIndexData)
if len(self._subjobIndexData) == len(self):
for i in range(len(self)):
if self.isLoaded(i):
Expand Down Expand Up @@ -573,7 +575,7 @@ def _private_display(self, reg_slice, this_format, default_width, markup):
vals = []
for item in reg_slice._display_columns:
display_str = "display:" + str(item)
#logger.debug("Looking for : %s" % display_str)
# logger.debug("Looking for : %s" % display_str)
width = reg_slice._display_columns_width.get(item, default_width)
try:
if item == 'fqid':
Expand Down

0 comments on commit c7baa5a

Please sign in to comment.