def test_list_functions(self): surfs = dagmc.get_surface_list() self.assertEqual(set(surfs), set(range(1, 19))) vols = dagmc.get_volume_list() self.assertEqual(set(vols), set(range(1, 5)))
def list_functions(): from pyne import dagmc dagmc.load(path) surfs = dagmc.get_surface_list() vols = dagmc.get_volume_list() return [surfs, vols]
def list_functions(): from pyne import dagmc dagmc.load(path) surfs = dagmc.get_surface_list() assert_equal(set(surfs), set(range(1, 19))) vols = dagmc.get_volume_list() assert_equal(set(vols), set(range(1, 5)))
def determine_volid(xyz): vol_list = get_volume_list() for vol in vol_list: if point_in_volume(vol,xyz) == 1: return vol return 0