From: <bpe...@us...> - 2016-01-27 15:00:35
|
Revision: 5007 http://sourceforge.net/p/simupop/code/5007 Author: bpeng2000 Date: 2016-01-27 15:00:33 +0000 (Wed, 27 Jan 2016) Log Message: ----------- add a bit more test (using removeLoci with Fst) Modified Paths: -------------- trunk/test/test_08_stat.py Modified: trunk/test/test_08_stat.py =================================================================== --- trunk/test/test_08_stat.py 2016-01-27 14:56:20 UTC (rev 5006) +++ trunk/test/test_08_stat.py 2016-01-27 15:00:33 UTC (rev 5007) @@ -514,6 +514,10 @@ # change order, but the result should be the same stat(pop, structure=[5, 3, 2]) self.assertAlmostEqual(pop.dvars().F_st, 0.0261665) + # or remove some loci + pop.removeLoci(keep=[5,2,3]) + stat(pop, structure=ALL_AVAIL) + self.assertAlmostEqual(pop.dvars().F_st, 0.0261665) def testHaploFreq(self): 'Testing calculation of haplotype frequency' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |