當前位置: 首頁>>代碼示例>>Python>>正文


Python WMBSBase.__init__方法代碼示例

本文整理匯總了Python中WMCore.WMBS.WMBSBase.WMBSBase.__init__方法的典型用法代碼示例。如果您正苦於以下問題:Python WMBSBase.__init__方法的具體用法?Python WMBSBase.__init__怎麽用?Python WMBSBase.__init__使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在WMCore.WMBS.WMBSBase.WMBSBase的用法示例。


在下文中一共展示了WMBSBase.__init__方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

# 需要導入模塊: from WMCore.WMBS.WMBSBase import WMBSBase [as 別名]
# 或者: from WMCore.WMBS.WMBSBase.WMBSBase import __init__ [as 別名]
    def __init__(
        self,
        spec=None,
        owner="unknown",
        dn="unknown",
        group="unknown",
        owner_vogroup="DEFAULT",
        owner_vorole="DEFAULT",
        name=None,
        task=None,
        wfType=None,
        id=-1,
    ):
        WMBSBase.__init__(self)
        WMWorkflow.__init__(
            self,
            spec=spec,
            owner=owner,
            dn=dn,
            group=group,
            owner_vogroup=owner_vogroup,
            owner_vorole=owner_vorole,
            name=name,
            task=task,
            wfType=wfType,
        )

        if self.dn == "unknown":
            self.dn = owner

        self.id = id
        return
開發者ID:stuartw,項目名稱:WMCore,代碼行數:34,代碼來源:Workflow.py

示例2: __init__

# 需要導入模塊: from WMCore.WMBS.WMBSBase import WMBSBase [as 別名]
# 或者: from WMCore.WMBS.WMBSBase.WMBSBase import __init__ [as 別名]
    def __init__(self, lfn = None, id = -1, size = None,
                 events = None, checksums = {}, parents = None, locations = None,
                 status = "NOTUPLOADED"):
        WMBSBase.__init__(self)
        WMFile.__init__(self, lfn = lfn, size = size, events = events,
                        checksums = checksums, parents = parents, merged = True)
        self.setdefault("status", status)
        self.setdefault("id", id)

        # Parameters for the algorithm
        self.setdefault("appName", None)
        self.setdefault("appVer", None)
        self.setdefault("appFam", None)
        self.setdefault("psetHash", None)
        self.setdefault("configContent", None)
        self.setdefault("datasetPath", None)
        self.setdefault("valid_status", None)

        if locations == None:
            self.setdefault("newlocations", set())
        else:
            self.setdefault("newlocations", self.makeset(locations))

        # The WMBS base class creates a DAO factory for WMBS, we'll need to
        # overwrite that so we can use the factory for DBSBuffer objects.
        self.daoFactory = DAOFactory(package = "WMComponent.DBSBuffer.Database",
                                     logger = self.logger,
                                     dbinterface = self.dbi)

        #Remove reference to WMBS daofactory to prevent confusion
        self.daofactory = self.daoFactory
        return
開發者ID:pietverwilligen,項目名稱:WMCore,代碼行數:34,代碼來源:DBSBufferFile.py

示例3: __init__

# 需要導入模塊: from WMCore.WMBS.WMBSBase import WMBSBase [as 別名]
# 或者: from WMCore.WMBS.WMBSBase.WMBSBase import __init__ [as 別名]
    def __init__(self, spec = None, owner = None, dn = None, group = None,
                 owner_vogroup = '', owner_vorole = '',
                 name = None, task = None, wfType = None, id = -1):
        WMBSBase.__init__(self)
        WMWorkflow.__init__(self, spec = spec, owner = owner, dn = dn,
                            group = group, owner_vogroup = owner_vogroup,
                            owner_vorole = owner_vorole, name = name,
                            task = task, wfType = wfType)

        if not self.dn: self.dn = owner
        self.id = id
        return
開發者ID:zhiwenuil,項目名稱:WMCore,代碼行數:14,代碼來源:Workflow.py

示例4: __init__

# 需要導入模塊: from WMCore.WMBS.WMBSBase import WMBSBase [as 別名]
# 或者: from WMCore.WMBS.WMBSBase.WMBSBase import __init__ [as 別名]
    def __init__(self, subscription = None, jobs = None, id = -1, uid = None, location = None):
        WMBSBase.__init__(self)
        WMJobGroup.__init__(self, subscription=subscription, jobs = jobs)

        self.id = id
        self.lastUpdate = None
        self.uid = uid

        if location != None:
            self.setSite(location)

        return
開發者ID:alexanderrichards,項目名稱:WMCore,代碼行數:14,代碼來源:JobGroup.py

示例5: __init__

# 需要導入模塊: from WMCore.WMBS.WMBSBase import WMBSBase [as 別名]
# 或者: from WMCore.WMBS.WMBSBase.WMBSBase import __init__ [as 別名]
    def __init__(self, spec = None, owner = "unknown", dn = "unknown",
                 group = "unknown", owner_vogroup = "DEFAULT",
                 owner_vorole = "DEFAULT", name = None, task = None,
                 wfType = None, id = -1, alternativeFilesetClose = False):
        WMBSBase.__init__(self)
        WMWorkflow.__init__(self, spec = spec, owner = owner, dn = dn,
                            group = group, owner_vogroup = owner_vogroup,
                            owner_vorole = owner_vorole, name = name,
                            task = task, wfType = wfType)

        if self.dn == "unknown":
            self.dn = owner

        self.id = id
        self.alternativeFilesetClose = alternativeFilesetClose
        return
開發者ID:ticoann,項目名稱:WMCore,代碼行數:18,代碼來源:Workflow.py

示例6: __init__

# 需要導入模塊: from WMCore.WMBS.WMBSBase import WMBSBase [as 別名]
# 或者: from WMCore.WMBS.WMBSBase.WMBSBase import __init__ [as 別名]
    def __init__(self, fileset = None, workflow = None, id = -1,
                 split_algo = "FileBased", type = "Processing"):
        WMBSBase.__init__(self)

        # If a fileset or workflow isn't passed in the base class will create
        # empty non-WMBS filesets and workflows.  We want WMBS filesets and
        # workflows so we'll create those here.
        if fileset == None:
            fileset = Fileset()
        if workflow == None:
            workflow = Workflow()
            
        WMSubscription.__init__(self, fileset = fileset, workflow = workflow,
                                split_algo = split_algo, type = type)

        self.setdefault("id", id)

        self.bulkDeleteLimit = 500
        return
開發者ID:zhiwenuil,項目名稱:WMCore,代碼行數:21,代碼來源:Subscription.py

示例7: __init__

# 需要導入模塊: from WMCore.WMBS.WMBSBase import WMBSBase [as 別名]
# 或者: from WMCore.WMBS.WMBSBase.WMBSBase import __init__ [as 別名]
    def __init__(self, lfn = "", id = -1, size = 0, events = 0, checksums = {},
                 parents = None, locations = None, first_event = 0,
                 last_event = 0, merged = True):
        WMBSBase.__init__(self)
        WMFile.__init__(self, lfn = lfn, size = size, events = events,
                        checksums = checksums, parents = parents, merged = merged)

        if locations == None:
            self.setdefault("newlocations", set())
        else:
            if type(locations) == str:
                self.setdefault("newlocations", set())
                self['newlocations'].add(locations)
            else:
                self.setdefault("newlocations", locations)

        # overwrite the default value set from the WMFile
        self["first_event"] =  first_event
        self["last_event"] = last_event
        self.setdefault("id", id)
        self['locations'] = set()
開發者ID:AndrewLevin,項目名稱:WMCore,代碼行數:23,代碼來源:File.py

示例8: __init__

# 需要導入模塊: from WMCore.WMBS.WMBSBase import WMBSBase [as 別名]
# 或者: from WMCore.WMBS.WMBSBase.WMBSBase import __init__ [as 別名]
    def __init__(self, name = None, files = None, id = None):
        """
        ___init___

        jobgroup object is used to determine the workflow.
        inputFiles is a list of files that the job will process.
        """
        WMBSBase.__init__(self)
        WMJob.__init__(self, name = name, files = files)

        self["id"]           = id
        self["jobgroup"]     = None
        self["couch_record"] = None
        self["attachments"]  = {}
        self["cache_dir"]    = None
        self["sandbox"]      = None
        self['fwjr']         = None
        self["mask"]         = Mask()
        self['custom']       = {}  # For local add-ons that we want to send to JSON

        return
開發者ID:AndrewLevin,項目名稱:WMCore,代碼行數:23,代碼來源:Job.py

示例9: __init__

# 需要導入模塊: from WMCore.WMBS.WMBSBase import WMBSBase [as 別名]
# 或者: from WMCore.WMBS.WMBSBase.WMBSBase import __init__ [as 別名]
    def __init__(self, lfn=None, id=-1, size=None,
                 events=None, checksums=None, parents=None, locations=None,
                 status="NOTUPLOADED", inPhedex=0, workflowId=None, prep_id=None):

        checksums = checksums or {}
        WMBSBase.__init__(self)
        WMFile.__init__(self, lfn=lfn, size=size, events=events,
                        checksums=checksums, parents=parents, merged=True)
        self.setdefault("status", status)
        self.setdefault("in_phedex", inPhedex)
        self.setdefault("id", id)
        self.setdefault("workflowId", workflowId)

        # Parameters for the algorithm
        self.setdefault("appName", None)
        self.setdefault("appVer", None)
        self.setdefault("appFam", None)
        self.setdefault("psetHash", None)
        self.setdefault("configContent", None)
        self.setdefault("datasetPath", None)
        self.setdefault("processingVer", None)
        self.setdefault("acquisitionEra", None)
        self.setdefault("validStatus", None)
        self.setdefault("globalTag", None)
        self.setdefault("datasetParent", None)
        self.setdefault("prep_id", None)

        if locations is None:
            self.setdefault("newlocations", set())
        else:
            self.setdefault("newlocations", self.makeset(locations))

        # The WMBS base class creates a DAO factory for WMBS, we'll need to
        # overwrite that so we can use the factory for DBSBuffer objects.
        self.daofactory = DAOFactory(package="WMComponent.DBS3Buffer",
                                     logger=self.logger,
                                     dbinterface=self.dbi)

        return
開發者ID:DAMason,項目名稱:WMCore,代碼行數:41,代碼來源:DBSBufferFile.py

示例10: __init__

# 需要導入模塊: from WMCore.WMBS.WMBSBase import WMBSBase [as 別名]
# 或者: from WMCore.WMBS.WMBSBase.WMBSBase import __init__ [as 別名]
    def __init__(self):
        WMMask.__init__(self)
        WMBSBase.__init__(self)


        return
開發者ID:AndrewLevin,項目名稱:WMCore,代碼行數:8,代碼來源:Mask.py


注:本文中的WMCore.WMBS.WMBSBase.WMBSBase.__init__方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。