def _part_ind_brute_force(self, ptype):
    parent = getattr(self, 'parent', self.base_object)
    units = 'code_length'
    mask = points_in_cells(self[('index', 'x')].to(units), self[('index', 'y')].to(units), self[('index', 'z')].to(units), self[('index', 'dx')].to(units), self[('index', 'dy')].to(units), self[('index', 'dz')].to(units), parent[(ptype, 'particle_position_x')].to(units), parent[(ptype, 'particle_position_y')].to(units), parent[(ptype, 'particle_position_z')].to(units))
    return mask
def _part_ind_brute_force(self, ptype):
    parent = getattr(self, 'parent', self.base_object)
    units = 'code_length'
    mask = points_in_cells(self[('index', 'x')].to(units), self[('index', 'y')].to(units), self[('index', 'z')].to(units), self[('index', 'dx')].to(units), self[('index', 'dy')].to(units), self[('index', 'dz')].to(units), parent[(ptype, 'particle_position_x')].to(units), parent[(ptype, 'particle_position_y')].to(units), parent[(ptype, 'particle_position_z')].to(units))
    return mask