Beispiel #1
0
    def test_eval_not_implemented(self):
        node = Node()
        with pytest.raises(NotImplementedError):
            node.eval(podpac.Coordinates([]))

        with pytest.raises(NotImplementedError):
            node.eval(podpac.Coordinates([]), output=None)
Beispiel #2
0
    def test_eval_not_implemented(self):
        n = Node()
        with pytest.raises(NotImplementedError):
            n.eval(None)

        with pytest.raises(NotImplementedError):
            n.eval(None, output=None)
Beispiel #3
0
    def test_eval_output_crs(self):
        coords = podpac.Coordinates([[0, 1, 2, 3], [0, 1]],
                                    dims=["lat", "lon"])

        node = Node()
        with pytest.raises(
                ValueError,
                match="Output coordinate reference system .* does not match"):
            node.eval(coords,
                      output=node.create_output_array(
                          coords.transform("EPSG:2193")))