Example #1
0
    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')
Example #2
0
 def test_save_analyzed_image(self):
     """Test that saving an image does something."""
     save_file(self.star.save_analyzed_image)
Example #3
0
 def test_saving_image(self):
     save_file(self.pf.save_analyzed_image)
Example #4
0
 def test_save(self):
     save_file(self.dcm.save)
Example #5
0
 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)
Example #6
0
 def test_pdf(self):
     save_file(self.cbct.publish_pdf, 'temp')
Example #7
0
 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)
Example #8
0
 def test_pdf(self):
     save_file(self.trs398.publish_pdf)
     if self.open_pdf:
         self.trs398.publish_pdf('testtrs.pdf', open_file=True)
Example #9
0
 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)
Example #10
0
 def test_pdf(self):
     save_file(self.cbct.publish_pdf, 'temp')
Example #11
0
 def test_publish_pdf(self):
     instance = self.klass.from_demo_images()
     instance.analyze()
     save_file(instance.publish_pdf)
Example #12
0
 def test_save_to_csv(self):
     save_file(self.log.to_csv)
Example #13
0
 def test_save_summary(self):
     self.log.fluence.gamma.calc_map()
     save_file(self.log.save_summary)
Example #14
0
 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)
Example #15
0
 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')
Example #16
0
 def test_pdf_gets_generated(self):
     fs = create_instance()
     save_file(fs.publish_pdf)
Example #17
0
 def test_saving(self):
     self.instance.plot_analyzed_image()
     save_file(self.instance.save_analyzed_image)
Example #18
0
 def test_save(self):
     save_file(self.wl.save_summary)
     save_file(self.wl.save_images)
Example #19
0
 def test_pdf(self):
     save_file(self.instance.publish_pdf)