Skip to content

Commit

Permalink
import straightening
Browse files Browse the repository at this point in the history
  • Loading branch information
Cobord committed May 14, 2024
1 parent a56618e commit 2887b30
Show file tree
Hide file tree
Showing 18 changed files with 8 additions and 20 deletions.
Empty file added conftest.py
Empty file.
1 change: 0 additions & 1 deletion plabic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""
the relevant classes for external use
"""
#pylint:disable=import-error
from .planar_diagram import PlanarNetwork,ChipType,determinant
from .framed_2_disks import FramedDiskConfig
from .plabic_diagram import BiColor,PlabicGraphBuilder,PlabicGraph,ExtraData
Expand Down
4 changes: 3 additions & 1 deletion plabic/bcfw_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
https://arxiv.org/pdf/2402.15568.pdf
"""

#pylint:disable=line-too-long,too-many-locals,unused-variable,unreachable

from __future__ import annotations
import random
import string
Expand Down Expand Up @@ -124,4 +126,4 @@ def butterfly_product(self,other : BCFWCell, along_this : ButterflyData) -> None
return reason
self.__my_kaleidoscope = butterfly
self.__my_kaleidoscopes_outer_based_labelling = my_based_labelling
self.__my_positroid = ???
# self.__my_positroid = ???
2 changes: 0 additions & 2 deletions plabic/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
from typing import Callable, Optional, TypeVar,Protocol,\
Generic,List,Dict,Tuple,Set
from functools import reduce
#pylint:disable=import-error
import networkx as nx
import matplotlib.pyplot as plt
#pylint:disable=import-error
from sympy import Expr, Integer, symbols

T = TypeVar("T")
Expand Down
1 change: 0 additions & 1 deletion plabic/double_wiring.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from __future__ import annotations
from functools import reduce
from typing import Tuple,List,Dict,Iterator,Set,Any,cast
#pylint:disable=import-error
from .plabic_diagram import PlabicGraph, BiColor
from .ba_permutation import AffinePermutation

Expand Down
1 change: 0 additions & 1 deletion plabic/le_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from typing import List, Optional, Tuple, Set, Iterable, Union, TypeVar, Dict, cast, Iterator
import itertools

#pylint:disable=import-error
from .plabic_diagram import BiColor, ExtraData, PlabicGraph
from .ba_permutation import AffinePermutation, BruhatInterval

Expand Down
2 changes: 0 additions & 2 deletions plabic/plabic_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
from math import sqrt
from typing import Tuple, Optional, List, Dict, cast, Any, Callable, Set, Iterator
import itertools
#pylint:disable=import-error
import networkx as nx
import matplotlib.pyplot as plt
# pylint:disable=import-error
from .framed_2_disks import FramedDiskConfig

Point = Tuple[float,float]
Expand Down
1 change: 0 additions & 1 deletion plabic/planar_diagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from typing import runtime_checkable, Protocol, Any, cast
import itertools
from functools import reduce
#pylint:disable=import-error
import networkx as nx
import matplotlib.pyplot as plt

Expand Down
1 change: 0 additions & 1 deletion plabic/sym_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""

from typing import cast,Set,List,Optional
#pylint:disable=import-error
from sympy import Symbol, Expr, Add, Mul, Pow, Integer, Rational, UnevaluatedExpr

#pylint:disable=too-many-return-statements
Expand Down
1 change: 0 additions & 1 deletion plabic/tnn_grassmannian.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import itertools
from math import comb
from typing import Callable, Dict, FrozenSet, List, Optional,Set, Union
#pylint:disable=import-error
from sympy import Expr,Symbol,Integer
import numpy as np
from .sym_utils import nn_with_my_symbols,determinant
Expand Down
1 change: 0 additions & 1 deletion plabic/triangulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from functools import reduce
import itertools
from math import sin, cos, pi as PI, atan2, sqrt
#pylint:disable=import-error
from .plabic_diagram import PlabicGraph, BiColor
from .framed_2_disks import FramedDiskConfig

Expand Down
2 changes: 0 additions & 2 deletions tests/test_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
test for clusters
"""
from typing import Dict
#pylint:disable=import-error
from sympy import Expr,symbols,Integer
#pylint:disable=import-error
import networkx as nx
import numpy as np
from plabic import Cluster,cluster_same
Expand Down
2 changes: 1 addition & 1 deletion tests/test_double_wiring.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
test for double wiring diagrams
"""
#pylint:disable=invalid-name,import-error
#pylint:disable=invalid-name
from typing import List
from plabic import WiringDiagram

Expand Down
2 changes: 1 addition & 1 deletion tests/test_le.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
test Le diagrams
"""

#pylint:disable=invalid-name,import-error
#pylint:disable=invalid-name
from typing import Set
from plabic import LeDiagram

Expand Down
2 changes: 1 addition & 1 deletion tests/test_plabic.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
test Plabic graphs
"""
#pylint:disable=import-error,too-many-locals
#pylint:disable=too-many-locals
from typing import List,Dict
from plabic import PlabicGraph,BiColor,PlabicGraphBuilder

Expand Down
2 changes: 1 addition & 1 deletion tests/test_planar_diagram.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
test planar diagrams
"""
#pylint:disable=import-error,invalid-name,too-many-locals
#pylint:disable=invalid-name,too-many-locals
from typing import cast,List,Tuple
from sympy import symbols, Symbol, Expr, Add, Mul, Pow, Integer, Rational, UnevaluatedExpr
from plabic import PlanarNetwork, determinant, ChipType
Expand Down
1 change: 0 additions & 1 deletion tests/test_tnn_grassmannian.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""
test for tnn grassmannian
"""
#pylint:disable=import-error
from sympy import Integer,symbols
from plabic.tnn_grassmannian import TNNGrassChart,MinorSignConstraints

Expand Down
2 changes: 1 addition & 1 deletion tests/test_triangulation.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
test triangulations of convex m-gons
"""
#pylint:disable=import-error,invalid-name,R0801
#pylint:disable=invalid-name,R0801
from math import pi as PI,sin,cos
from plabic import Triangulation

Expand Down

0 comments on commit 2887b30

Please sign in to comment.