示例#1
0
    def test_util_matlist(self):

        mats = dagmc.get_material_set()
        self.assertEqual(set((0, 5)), mats)

        mats = dagmc.get_material_set(with_rho=True)
        self.assertEqual(set([(0, 0.0), (5, 0.5)]), mats)
示例#2
0
    def test_util_matlist(self):

        mats = dagmc.get_material_set()
        self.assertEqual(set((0, 5)), mats)

        mats = dagmc.get_material_set(with_rho=True)
        self.assertEqual(set([(0, 0.0), (5, 0.5)]), mats)
示例#3
0
def util_matlist():
    from pyne import dagmc
    dagmc.load(path)

    mats1 = dagmc.get_material_set()
    mats2 = dagmc.get_material_set(with_rho=True)

    return [mats1, mats2]
示例#4
0
def util_matlist():
    from pyne import dagmc
    dagmc.load(path)

    mats = dagmc.get_material_set()
    assert_equal(set((0, 5)), mats)

    mats = dagmc.get_material_set(with_rho=True)
    assert_equal(set([(0, 0.0), (5, 0.5)]), mats)
示例#5
0
def util_matlist():
    from pyne import dagmc
    dagmc.load(path)
    
    mats = dagmc.get_material_set()
    assert_equal(set((0, 5)), mats)

    mats = dagmc.get_material_set(with_rho=True)
    assert_equal(set([(0, 0.0), (5, 0.5)]), mats)