Пример #1
0
 def test_plots(self):
     plot_gls(self.gls, self.tree, filename=text_type(self.tmp_path('test')))
     plot_tree(self.tree, filename=text_type(self.tmp_path('test')))
     plot_concept_evolution(self.scenarios, self.tree,
                            filename=text_type(self.tmp_path('test')))
     
     wl = Wordlist(test_data('KSL.qlc'))
     wl.calculate('tree')
     plot_heatmap(wl, filename=text_type(self.tmp_path('test')),
                  ref="cogid", refB="cogid", steps=1)
Пример #2
0
def test_plots(mocker, Plt, Sch, gls, tree, scenarios, tmppath, test_data):
    mocker.patch('lingpy.convert.plot.mpl', new=mocker.MagicMock())
    mocker.patch('lingpy.convert.plot.plt', new=Plt)
    mocker.patch('lingpy.convert.plot.sch', new=Sch)

    plot_gls(gls, tree, filename=str(tmppath / 'test'))
    plot_tree(tree, filename=str(tmppath / 'test'))
    plot_concept_evolution(scenarios, tree, filename=str(tmppath / 'test'))

    wl = Wordlist(str(test_data /'KSL.qlc'))
    wl.calculate('tree')
    plot_heatmap(wl, filename=str(tmppath / 'test'), ref="cogid", refB="cogid", steps=1)
Пример #3
0
    def test_plots(self):
        plot_gls(self.gls,
                 self.tree,
                 filename=text_type(self.tmp_path('test')))
        plot_tree(self.tree, filename=text_type(self.tmp_path('test')))
        plot_concept_evolution(self.scenarios,
                               self.tree,
                               filename=text_type(self.tmp_path('test')))

        wl = Wordlist(test_data('KSL.qlc'))
        wl.calculate('tree')
        plot_heatmap(wl,
                     filename=text_type(self.tmp_path('test')),
                     ref="cogid",
                     refB="cogid",
                     steps=1)