Beispiel #1
0
 def test_plot_procrustes_custom_axis(self):
     with tempfile.TemporaryDirectory() as output_dir:
         procrustes_plot(output_dir, self.pcoa, other_pcoa=self.other,
                         metadata=self.metadata, custom_axes=['val1'])
         index_fp = os.path.join(output_dir, 'index.html')
         self.assertTrue(os.path.exists(index_fp))
         self.assertTrue('src="./emperor.html"' in open(index_fp).read())
Beispiel #2
0
 def test_plot_procrustes_custom_axis(self):
     with tempfile.TemporaryDirectory() as output_dir:
         procrustes_plot(output_dir, self.pcoa, other_pcoa=self.other,
                         metadata=self.metadata, custom_axes=['val1'])
         index_fp = os.path.join(output_dir, 'index.html')
         self.assertTrue(os.path.exists(index_fp))
         self.assertTrue('src="./emperor.html"' in open(index_fp).read())