Commit 1c1c8e47 authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Fixed issue with pushing boolean values to backend.

parent 0b4b92ed
......@@ -186,7 +186,7 @@ class InputObject(object):
elif self.data_type == "string":
returned = np.array(splitted)
elif self.data_type == "logical":
returned = np.array([True if x.upper() == "T" else False for x in splitted])
returned = np.array(splitted)
else:
logger.error("Unknown data type '{}'".format(self.data_type))
return
......
......@@ -270,7 +270,7 @@ class TestEnergyForce(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.results = get_results("energy_force", "section_run")
cls.results.print_summary()
# cls.results.print_summary()
def test_energy_total_scf_iteration(self):
energy_total = self.results["energy_total_scf_iteration"]
......@@ -450,14 +450,14 @@ if __name__ == '__main__':
logger.setLevel(logging.ERROR)
suites = []
# suites.append(unittest.TestLoader().loadTestsFromTestCase(TestErrors))
# suites.append(unittest.TestLoader().loadTestsFromTestCase(TestXCFunctional))
suites.append(unittest.TestLoader().loadTestsFromTestCase(TestErrors))
suites.append(unittest.TestLoader().loadTestsFromTestCase(TestXCFunctional))
suites.append(unittest.TestLoader().loadTestsFromTestCase(TestEnergyForce))
# suites.append(unittest.TestLoader().loadTestsFromTestCase(TestStressTensorMethods))
# suites.append(unittest.TestLoader().loadTestsFromTestCase(TestSelfInteractionCorrectionMethod))
# suites.append(unittest.TestLoader().loadTestsFromTestCase(TestConfigurationPeriodicDimensions))
# suites.append(unittest.TestLoader().loadTestsFromTestCase(TestSCFConvergence))
# suites.append(unittest.TestLoader().loadTestsFromTestCase(TestForceFiles))
# suites.append(unittest.TestLoader().loadTestsFromTestCase(TestPreprocessor))
suites.append(unittest.TestLoader().loadTestsFromTestCase(TestStressTensorMethods))
suites.append(unittest.TestLoader().loadTestsFromTestCase(TestSelfInteractionCorrectionMethod))
suites.append(unittest.TestLoader().loadTestsFromTestCase(TestConfigurationPeriodicDimensions))
suites.append(unittest.TestLoader().loadTestsFromTestCase(TestSCFConvergence))
suites.append(unittest.TestLoader().loadTestsFromTestCase(TestForceFiles))
suites.append(unittest.TestLoader().loadTestsFromTestCase(TestPreprocessor))
alltests = unittest.TestSuite(suites)
unittest.TextTestRunner(verbosity=0).run(alltests)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment