def test_save_axes(self): for methodname in ('save_plot_actual', 'save_plot_expected', 'save_plot_difference'): # save matplotlib figures method = getattr(self.log.axis_data.mlc.leaf_axes[10], methodname) save_file(method) # save MPLD3 HTML save_file(method, interactive=True, as_file_object='str')
def test_save_analyzed_image(self): """Test that saving an image does something.""" save_file(self.star.save_analyzed_image)
def test_saving_image(self): save_file(self.pf.save_analyzed_image)
def test_save(self): save_file(self.dcm.save)
def test_save_image(self): """Test that saving an image does something.""" for method in ['save_analyzed_image', 'save_analyzed_subimage']: methodcall = getattr(self.cbct, method) save_file(methodcall)
def test_pdf(self): save_file(self.cbct.publish_pdf, 'temp')
def test_save_axes(self): for methodname in ('save_plot_actual', 'save_plot_expected', 'save_plot_difference'): # save matplotlib figures method = getattr(self.log.axis_data.mlc.leaf_axes[10], methodname) save_file(method)
def test_pdf(self): save_file(self.trs398.publish_pdf) if self.open_pdf: self.trs398.publish_pdf('testtrs.pdf', open_file=True)
def test_save_image(self): """Test that saving an image does something.""" for method in ['save_analyzed_image', 'save_analyzed_subimage']: methodcall = getattr(self.cbct, method) save_file(methodcall)
def test_pdf(self): save_file(self.cbct.publish_pdf, 'temp')
def test_publish_pdf(self): instance = self.klass.from_demo_images() instance.analyze() save_file(instance.publish_pdf)
def test_save_to_csv(self): save_file(self.log.to_csv)
def test_save_summary(self): self.log.fluence.gamma.calc_map() save_file(self.log.save_summary)
def test_saving_fluence_plots(self): self.log.fluence.gamma.calc_map() save_file(self.log.fluence.gamma.save_map) save_file(self.log.fluence.gamma.save_histogram)
def test_save_analyzed_subimage(self): # save as normal file save_file(self.star.save_analyzed_subimage) # save into buffer save_file(self.star.save_analyzed_subimage, as_file_object='b')
def test_pdf_gets_generated(self): fs = create_instance() save_file(fs.publish_pdf)
def test_saving(self): self.instance.plot_analyzed_image() save_file(self.instance.save_analyzed_image)
def test_save(self): save_file(self.wl.save_summary) save_file(self.wl.save_images)
def test_pdf(self): save_file(self.instance.publish_pdf)