def removeStream(self, stream):
        try:
            del self._streams[stream.stream_id]
            cell = RelayEndCell.make(self.circuit_id, stream.stream_id)
            self._encryptAndSendCell(cell)
        except KeyError:
            msg = ("Circuit {} notified that stream {} was closed, but "
                   "the circuit has no reference to this stream."
                   .format(self.circuit_id, stream.stream_id))
            logging.debug(msg)
            return

        if len(self._streams) == 0:
            if self._circuit_manager.shouldDestroyCircuit(self) is True:
                self._sendDestroyCell()
                self._closeCircuit()
                msg = "Destroyed unused circuit {}.".format(self.circuit_id)
                logging.debug(msg)
The mineral cost of the unit. None if no type is assigned
dataset/ETHPy150Open nskinkel/oppy/oppy/circuit/circuit.py/Circuit.removeStream--crossover with--dataset/ETHPy150Open GraylinKim/sc2reader/sc2reader/data/__init__.py/Unit.minerals