def setUp(self): path = get_path(__file__, 'data/chemmaterial.test.ilmenite.txt') self.ilm = Material("ilmenite", path) self.ilm_pkg_a = self.ilm.create_package("IlmeniteA", 1234.5, True) self.ilm_pkg_b = self.ilm.create_package("IlmeniteB", 2345.6, True) self.ilm_pkg_c = self.ilm.create_package("IlmeniteC", 3456.7, True) path = get_path(__file__, 'data/chemmaterial.test.reductant.txt') self.red = Material("reductant", path) self.red_pkg_a = self.red.create_package("ReductantA", 123.45, True) path = get_path(__file__, 'data/chemmaterial.test.mix.txt') self.mix = Material("mix", path)
def get_datafile_references(): """ Retrieve all the references used by the datafiles. """ with open(get_path(__file__, "data/references.json")) as f: content = eval(f.read()) return content
def setUp(self): self.ilm = Material("ilmenite", get_path(__file__, 'data/thermomaterial.test.ilmenite.txt')) self.ilm_pkg_a = self.ilm.create_package("IlmeniteA", 1234.5, 0.8, 100.0, True) self.ilm_pkg_b = self.ilm.create_package("IlmeniteB", 2345.6, 0.9, 200.0, True) self.ilm_pkg_c = self.ilm.create_package("IlmeniteC", 3456.7, 1.0, 300.0, True) self.red = Material("reductant", get_path(__file__, 'data/thermomaterial.test.reductant.txt')) self.red_pkg_a = self.red.create_package("ReductantA", 123.45, 0.75, 400.0, True) self.mix = Material("mix", get_path(__file__, 'data/thermomaterial.test.mix.txt'))
def get_datafile_references(): """ Retrieve all the references used by the datafiles. """ with open(get_path(__file__, "data/references.json")) as f: return json.load(f)
def setUp(self): test_data_file_path = get_path( __file__, 'data/chemmaterial.test.ilmenite.txt') self.material = Material("material", test_data_file_path)
def setUp(self): thermo.default_data_path = 'data/nist' test_data_file_path = get_path( __file__, 'data/thermomaterial.test.ilmenite.txt') self.m = Material("material", test_data_file_path)
def setUp(self): test_data_file_path = get_path(__file__, 'data/chemmaterial.test.ilmenite.txt') self.material = Material("material", test_data_file_path)