Skip to content

Commit

Permalink
Mark operation evaluated after the op is run (#1528)
Browse files Browse the repository at this point in the history
  • Loading branch information
acezen committed May 7, 2022
1 parent 4c16d53 commit c03b539
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ jobs:
- 'analytical_engine/apps/**'
- 'analytical_engine/frame/**'
- 'python/graphscope/nx/algorithms/builtin.py'
- 'python/graphscope/nx/algorithms/tests/builtin/**'
generator:
- 'python/graphscope/nx/classes/**'
- 'python/graphscope/nx/utils/**'
Expand Down
1 change: 1 addition & 0 deletions python/graphscope/framework/operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def eval(self, leaf=True):
if not self._leaf:
sess.dag.add_op(self)
res = sess.run(self)
self._evaluated = True
return res

def add_parent(self, op):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def test_maxiter(self):
b = nx.builtin.eigenvector_centrality(G, max_iter=0)


@pytest.mark.skip(reason="GetObject -> Object does not exist")
@pytest.mark.usefixtures("graphscope_session")
class TestEigenvectorCentralityDirected(object):
@classmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ def test_P3_unweighted(self):
assert almost_equal(b[n], b_answer[n], places=4)


@pytest.mark.skip(reason="GetObject -> Object does not exist")
@pytest.mark.usefixtures("graphscope_session")
class TestKatzCentralityDirected(object):
@classmethod
Expand Down

0 comments on commit c03b539

Please sign in to comment.