def set_walls(self, x, y, z, dx, dy, dz, refined):

        if not np.isscalar(x):
            raise ValueError("x should be a scalar value")
        if not np.isreal(x):
            raise ValueError("x should be a numerical value")

        if not np.isscalar(y):
            raise ValueError("y should be a scalar value")
        if not np.isreal(y):
            raise ValueError("y should be a numerical value")

        if not np.isscalar(z):
            raise ValueError("z should be a scalar value")
        if not np.isreal(z):
            raise ValueError("z should be a numerical value")

        if not np.isscalar(dx):
            raise ValueError("dx should be a scalar value")
        if not np.isreal(dx):
            raise ValueError("dx should be a numerical value")

        if not np.isscalar(dy):
            raise ValueError("dy should be a scalar value")
        if not np.isreal(dy):
            raise ValueError("dy should be a numerical value")

        if not np.isscalar(dz):
            raise ValueError("dz should be a scalar value")
        if not np.isreal(dz):
            raise ValueError("dz should be a numerical value")

        if [list, tuple] in type(refined):
            refined = np.array(refined)

        if not is_numpy_array(refined) or refined.ndim != 1 or refined.dtype != bool:
            raise ValueError("refined should be a 1-D boolean sequence")

        self.x = x
        self.y = y
        self.z = z

        self.dx = dx
        self.dy = dy
        self.dz = dz

        self.refined = refined

        self.shape = (len(refined),)
dataset/ETHPy150Open hyperion-rt/hyperion/hyperion/grid/octree_grid.py/OctreeGrid.set_walls/swapped operands of `in`