def write(self, outputdir, summarize=False): if summarize is False: self.summarize() writer = Writer(outputdir, self) writer.write_particle()