'Calculate the value for the ``DATASUM`` card in the HDU.'

def _calculate_datasum(self, blocking):

    if self._has_data:
        return self._calculate_datasum_with_heap(blocking)
    else:
        return super(BinTableHDU, self)._calculate_datasum(blocking)
