def METHOD_NAME(self, num_samples):
    self.parse_input()
    self.input.xml['simulation'].getroot().findall('./Parameters/Samples')[0].text = str(num_samples)
    self.input.xml['simulation'].write(self.input.locations['simulation'], xml_declaration=True)