def take_spikes_by_unit(self, unit_list=None):
        if unit_list is None:
            return []
        spike_list = []
        for spike in self.spikes:
            if spike.unit in unit_list:
                spike_list.append(spike)
        return spike_list
Loads templates from Python eggs via pkg_resource.resource_string.
dataset/ETHPy150Open NeuralEnsemble/python-neo/neo/core/segment.py/Segment.take_spikes_by_unit--crossover with--dataset/ETHPy150Open django/django/django/template/loaders/eggs.py/Loader.load_template_source