Source code for halo

import numpy as np

class Halo:
[docs] def __init__(self, cmx, cmy, cmz, r200, mass, hparent,Lx,Ly,Lz): self.cm = np.array([cmx,cmy,cmz]) self.r200 = r200 self.mass = mass self.hparent = hparent self.L = np.array([Lx,Ly,Lz]) self.galaxy_list = [] def deleteAttribute(self,attrib):
[docs] if hasattr(self, attrib): delattr(self,attrib)