Exemplo n.º 1
0
    def test_binify_even_width_bw_maxlag(self):
        """
        Testing binning matrix of binify_even_width Function with a maxlag
        """

        assert_array_almost_equal(
            np.asarray(binify_even_width(self.coordinates, maxlag=4)[1]),
            result_binify_even_width_bw_maxlag)
Exemplo n.º 2
0
    def test_binify_even_width_bw_n6(self):
        """
        Testing binning width array of binify_even_width Function with 6 bins
        """

        assert_array_almost_equal(
            np.asarray(binify_even_width(self.coordinates, N=6)[1]),
            result_binify_even_width_bw_n6)
Exemplo n.º 3
0
    def test_binify_even_width_bm_with_dm(self):
        """
        Testing binning matrix of binify_even_width Function with a distance matrix
        """

        assert_array_almost_equal(
            np.asarray(binify_even_width(self.coordinates, dm=binify_dm)[0]),
            result_binify_even_width_bm)
Exemplo n.º 4
0
    def test_binify_even_width_bm(self):
        """
        Testing binning matrix of binify_even_width Function
        """

        assert_array_almost_equal(
            np.asarray(binify_even_width(self.coordinates)[0]),
            result_binify_even_width_bm)