def __init__(self, input, output): # Save filesnames to use self.input = os.path.abspath(input) self.output = os.path.abspath(output) # Perform base class initialization Task.__init__(self)
def __init__(self, mode, location): # Save filesnames to use self.location = location self.mode = mode # Perform base class initialization Task.__init__(self)
def __init__(self, node__, status__): # Save filesnames to use self.node = node__ self.status = status__ # Perform base class initialization Task.__init__(self)
def __init__(self): self.raw_data = { "tegner-login-1": "/cfs/klemming/projects/xenon/xenon1t/raw/", "midway-login1": "/project2/lgrandi/xenon1t/raw/" } self.proc_data = { "tegner-login-1": "/cfs/klemming/projects/xenon/xenon1t/processed/", "midway-login1": "/project/lgrandi/xenon1t/processed/" } self.chown_user = { "tegner-login-1": "bobau", "midway-login1": "pdeperio" } self.chown_group = { "tegner-login-1": "xenon-users", "midway-login1": "xenon1t-admins" } self.chmod = {"tegner-login-1": '750', "midway-login1": '755'} Task.__init__(self) self.hostname_config = config.get_config(config.get_hostname()) self.hostname = config.get_hostname()
def __init__(self): self.correction_collection = config.mongo_collection(self.collection_name) if self.key == 'not_set': raise ValueError("You must set a correction key attribute") if self.collection_name == 'not_set': raise ValueError("You must set a correction collection_name attribute") Task.__init__(self)
def __init__(self): self.correction_collection = config.mongo_collection( self.collection_name) if self.key == 'not_set': raise ValueError("You must set a correction key attribute") if self.collection_name == 'not_set': raise ValueError( "You must set a correction collection_name attribute") Task.__init__(self)
def __init__(self): self.raw_data = {"tegner-login-1": "/cfs/klemming/projects/xenon/xenon1t/raw/", "midway-login1": "/project2/lgrandi/xenon1t/raw/"} self.proc_data = {"tegner-login-1": "/cfs/klemming/projects/xenon/xenon1t/processed/", "midway-login1": "/project/lgrandi/xenon1t/processed/"} self.chown_user = {"tegner-login-1": "bobau", "midway-login1": "pdeperio"} self.chown_group = {"tegner-login-1": "xenon-users", "midway-login1": "xenon1t-admins"} self.chmod = {"tegner-login-1": '750', "midway-login1": '755'} Task.__init__(self) self.hostname_config = config.get_config(config.get_hostname()) self.hostname = config.get_hostname()
def __init__(self, location): # Save filesnames to use self.location = location print("delete from database: ", self.location) # Perform base class initialization Task.__init__(self)
def __init__(self): Task.__init__(self)
def __init__(self, location): # Save filesnames to use self.location = os.path.abspath(location) # Perform base class initialization Task.__init__(self)
def __init__(self, location, status): # Save filesnames to use self.location = location self.status = status print("delete from database: ", self.location) Task.__init__(self)
def __init__(self, db, status): self.run_doc = db self.status = status Task.__init__(self)