Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
rename defaultComponentHasTheseFiles DEFAULT_COMPONENT_HAS_THESE_FILES
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Mar 15, 2017
1 parent eac6ff5 commit 8cc5054
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion AlphaTwirl/HeppyResult/HeppyResult.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

##__________________________________________________________________||
DEFAULT_EXCLUDE_LIST = ['Chunks', 'failed']
componentHasTheseFiles = ['config.pck', 'config.txt']
DEFAULT_COMPONENT_HAS_THESE_FILES = ['config.pck', 'config.txt']

##__________________________________________________________________||
class HeppyResult(object):
Expand All @@ -18,12 +18,14 @@ class HeppyResult(object):
path (str): the path to the Heppy result
componentNames (list, optional): the list of the names of the components to read. If not given, all components except the ones listed in `excludeList` will be read.
excludeList (list, optional): a list of the names of the directory in the Heppy result directory which are to be excluded to be considered as components. if not given, `DEFAULT_EXCLUDE_LIST` will be used.
componentHasTheseFiles (list, optional): the directories with there files are considered as components. if not given, `DEFAULT_COMPONENT_HAS_THESE_FILES` will be used.
isComponent (function, optional): a function that determines if a directory is a Heppy component. if not give, `IsComponent` will be used.
"""

def __init__(self, path,
componentNames = None,
excludeList = DEFAULT_EXCLUDE_LIST,
componentHasTheseFiles = DEFAULT_COMPONENT_HAS_THESE_FILES,
isComponent = None,
):
self.path = os.path.normpath(path)
Expand Down

0 comments on commit 8cc5054

Please sign in to comment.