tree module

class tree.HyperCube(boundaries, mismatch, constraint_func=<function mass_sym_constraint>, metric=None, metric_tensor=None, det=None)[source]

Bases: object

N()[source]
coord_volume()[source]
dl(mismatch)[source]
match(other)[source]
num_templates(mismatch)[source]
num_tmps_per_side(mismatch)[source]
split(dim, reuse_metric=False)[source]
template_volume(mismatch)[source]
tile(mismatch, stochastic=False)[source]
volume(metric_tensor=None)[source]
class tree.Node(cube, parent=None, boundary=None)[source]

Bases: object

A Node implements a node in a binary tree decomposition of the parameter space. A node is a container for one hypercube. It can have sub-nodes that split the hypercube.

bad_aspect_count = [0]
leafnodes(out=None)[source]

Return a list of all leaf nodes that are ancestors of the given node and whose bounding box is not fully contained in the symmetryic region.

split(split_num_templates, mismatch, bifurcation=0, verbose=True, metric_tol=0.1, max_coord_vol=10.0)[source]
template_count = [1]
tree.mass_sym_constraint(vertices, mass_ratio=inf, total_mass=inf)[source]
tree.mass_sym_constraint_mc(vertices, mass_ratio=inf, total_mass=inf, minmax_m1=(0, inf), minmax_m2=(0, inf), minmax_mc=(0, inf))[source]
tree.packing_density(n)[source]
tree.uber_constraint(vertices, mtotal=100, ns_spin=0.05)[source]