def dimension(self, name, copy=True):
        """
        Returns the requested :class:`~hypercube.dims.Dimension` object

        Parameters
        ----------
        name : str
            Name of the :class:`~hypercube.dims.Dimension` object
        copy : boolean
            Returns a copy of the :class:`~hypercube.dims.Dimension` object if True (Default value = True)

        Returns
        -------
        :class:`~hypercube.dims.Dimension`
            A :class:`~hypercube.dims.Dimension` object.
        """

        try:
            return create_dimension(name, self._dims[name]) if copy else self._dims[name]
        except KeyError:
            raise KeyError("Dimension '{n}' is not registered "
                "on this cube".format(n=name)), None, sys.exc_info()[2]
Returns the requested :class:`~hypercube.dims.Dimension` object

        Parameters
        ----------
        name : str
            Name of the :class:`~hypercube.dims.Dimension` object
        copy : boolean
            Returns a copy of the :class:`~hypercube.dims.Dimension` object if True (Default value = True)

        Returns
        -------
        :class:`~hypercube.dims.Dimension`
            A :class:`~hypercube.dims.Dimension` object.