def mean(self, interpolation=None):
        if interpolation is None:
            return (self[:-1]*self.sampling_intervals).sum()/self.duration
        else:
            raise NotImplementedError
filename -> file object.
dataset/ETHPy150Open NeuralEnsemble/python-neo/neo/core/irregularlysampledsignal.py/IrregularlySampledSignal.mean--crossover with--dataset/ETHPy150Open ProgVal/Limnoria/src/utils/file.py/open_mkdir