def emit(self, filename=None):
        if not self.finished:
            self.finish()
        
        if filename is None:
            return pickle.dumps(self.results)
        else:
            f = open(filename, 'w')
            pickle.dump(self.results, f)
            f.close()
@todo: docstring
dataset/ETHPy150Open sunlightlabs/clearspending/completeness/__init__.py/MetricTester.emit--crossover with--dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/S3OptionAnalysis.drawChart