Skip to content

Commit 4824f84

Browse files
authored
Merge pull request #29 from Mathics3/update_Mathics7
Update mathics7
2 parents dceac5f + 38d2534 commit 4824f84

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

pymathics/graph/base.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from inspect import isgenerator
1111
from typing import Callable, Optional, Union
1212

13-
from mathics.builtin.base import AtomBuiltin, Builtin
13+
from mathics.core.builtin import AtomBuiltin, Builtin
1414
from mathics.core.atoms import Atom, Integer, Integer0, Integer1, Integer2, String
1515
from mathics.core.convert.expression import ListExpression, from_python, to_mathics_list
1616
from mathics.core.element import BaseElement
@@ -854,7 +854,6 @@ class AdjacencyList(_NetworkXBuiltin):
854854
summary_text = "list the adjacent vertices"
855855

856856
def _retrieve(self, graph, what, neighbors, expression, evaluation):
857-
858857
if what.get_head_name() in pattern_objects:
859858
collected = set()
860859
match = Matcher(what).match
@@ -1426,7 +1425,6 @@ def eval(self, graph, what, expression, evaluation, options) -> Optional[Graph]:
14261425
"VertexDelete[graph_, what_, OptionsPattern[VertexDelete]]"
14271426
graph = self._build_graph(graph, evaluation, options, expression)
14281427
if graph:
1429-
14301428
head_name = what.get_head_name()
14311429
if head_name in pattern_objects:
14321430
cases = Expression(
@@ -1566,7 +1564,6 @@ def eval(self, graph, what, expression, evaluation, options) -> Optional[Graph]:
15661564
"EdgeDelete[graph_, what_, OptionsPattern[EdgeDelete]]"
15671565
graph = self._build_graph(graph, evaluation, options, expression)
15681566
if graph:
1569-
15701567
head_name = what.get_head_name()
15711568
if head_name in pattern_objects:
15721569
cases = Expression(

pymathics/graph/tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
**{"GraphLayout": '"tree"'},
1919
}
2020

21-
from mathics.builtin.base import AtomBuiltin
21+
from mathics.core.builtin import AtomBuiltin
2222

2323

2424
# FIXME: do we need to have TreeGraphAtom and TreeGraph?

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def read(*rnames):
3232
version=__version__, # noqa
3333
packages=find_namespace_packages(include=["pymathics.*"]),
3434
install_requires=[
35-
"Mathics3>=6.0.1",
35+
"Mathics3>=7.0.0dev",
3636
"networkx>=3.0.0",
3737
"pydot",
3838
"matplotlib",

test/consistency-and-style/test_summary_text.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
import pytest
88

99
from pymathics.graph import __file__ as module_initfile_path
10-
from mathics.builtin.base import Builtin
10+
11+
from mathics.core.builtin import Builtin
1112
from mathics.core.load_builtin import name_is_builtin_symbol
1213
from mathics.doc.common_doc import skip_doc
1314

test/helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from mathics.core.load_builtin import import_and_load_builtins
66
from mathics.core.symbols import Symbol
7+
from mathics.core.load_builtin import import_and_load_builtins
78
from mathics.session import MathicsSession
89

910
import_and_load_builtins()
@@ -12,7 +13,7 @@
1213
# For consistency set the character encoding ASCII which is
1314
# the lowest common denominator available on all systems.
1415
session = MathicsSession(
15-
add_builtin=True, catch_interrupt=False, character_encoding="ASCII"
16+
character_encoding="ASCII"
1617
)
1718

1819

0 commit comments

Comments
 (0)