def update(self, profile, overwrite=True):
    'Update this profile from a given profile. All values that are\n        not None in the other profile are applied to this\n        profile\n\n        :param profile: the other profile\n        :type profile: :class:`Profile`\n        :param overwrite: if True, value will be set regardless. Otherwise, the\n                          new value will only be applied if the old value\n                          is None\n        '
    attrs = ['environment', 'nodes', 'threads', 'tasks', 'tasks_per_node', 'queue', 'time', 'mem', 'priority', 'log', 'out', 'account', 'prefix', 'env', 'temp', 'extra', 'working_dir']
    for attr in attrs:
        other = profile.__getattribute__(attr)
        if ((other is not None) and (overwrite or (self.__getattribute__(attr) is None))):
            setattr(self, attr, other)
Update this profile from a given profile. All values that are
not None in the other profile are applied to this
profile

:param profile: the other profile
:type profile: :class:`Profile`
:param overwrite: if True, value will be set regardless. Otherwise, the
                  new value will only be applied if the old value
                  is None
def update(self, profile, overwrite=True):
    'Update this profile from a given profile. All values that are\n        not None in the other profile are applied to this\n        profile\n\n        :param profile: the other profile\n        :type profile: :class:`Profile`\n        :param overwrite: if True, value will be set regardless. Otherwise, the\n                          new value will only be applied if the old value\n                          is None\n        '
    attrs = ['environment', 'nodes', 'threads', 'tasks', 'tasks_per_node', 'queue', 'time', 'mem', 'priority', 'log', 'out', 'account', 'prefix', 'env', 'temp', 'extra', 'working_dir']
    for attr in attrs:
        other = profile.__getattribute__(attr)
        if ((other is not None) and (overwrite or (self.__getattribute__(attr) is None))):
            setattr(self, attr, other)