Skip to content

Commit

Permalink
move to legacy: node_ref
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtruong committed Aug 27, 2024
1 parent ad8929d commit 865fe43
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion weave/legacy/arrow/list_.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

from weave import (
errors,
node_ref,
ref_base,
ref_util,
weave_internal,
Expand All @@ -27,6 +26,7 @@
graph,
op_def,
op_def_type,
node_ref,
)
from weave.legacy.arrow.arrow import (
ArrowWeaveListType,
Expand Down
4 changes: 2 additions & 2 deletions weave/legacy/graph_mapper.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from weave import node_ref, ref_base
from weave import ref_base
from weave import weave_types as types
from weave.legacy import graph, mappers
from weave.legacy import graph, mappers, node_ref
from weave.legacy import mappers_python_def as mappers_python


Expand Down
3 changes: 2 additions & 1 deletion weave/legacy/mappers_arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@

import pyarrow as pa

from weave import errors, node_ref, ref_base
from weave import errors, ref_base
from weave import weave_types as types
from weave.legacy import (
arrow_util,
artifact_base,
box,
mappers,
mappers_weave,
node_ref,
partial_object,
)
from weave.legacy import mappers_python_def as mappers_python
Expand Down
2 changes: 1 addition & 1 deletion weave/legacy/mappers_publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from weave import errors, ref_base, storage, weave_internal
from weave import weave_types as types
from weave.node_ref import ref_to_node
from weave.legacy.node_ref import ref_to_node

# from weave.legacy.ops_primitives import weave_api
from weave.legacy import (
Expand Down
2 changes: 1 addition & 1 deletion weave/node_ref.py → weave/legacy/node_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from weave.legacy import graph

from . import ref_base
from .. import ref_base

# Notes for the future:
# - I added list.lookup to lookup rows in a list by ID. I think we probably should
Expand Down
4 changes: 2 additions & 2 deletions weave/legacy/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

from IPython.display import IFrame, display

from weave.legacy import artifact_fs, context, graph, ops, panel
from weave import errors, node_ref, ref_base, storage, util
from weave.legacy import artifact_fs, context, graph, ops, node_ref, panel
from weave import errors, ref_base, storage, util
from . import usage_analytics
from .. import weave_types as types
from . import weavejs_fixes
Expand Down
2 changes: 1 addition & 1 deletion weave/tests/legacy/test_node_ref.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from weave.legacy import graph

from ... import api as weave
from ... import node_ref
from ...legacy import node_ref


def test_node_to_ref():
Expand Down

0 comments on commit 865fe43

Please sign in to comment.