Skip to content

Commit

Permalink
Merge pull request #86 from dylanljones/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
dylanljones authored Feb 27, 2023
2 parents be2c627 + ee05c89 commit 852005e
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
- id: mixed-line-ending

- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
types: [ python ]
hooks:
- id: black
Expand Down
1 change: 0 additions & 1 deletion lattpy/lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,6 @@ def _append(
sort_reverse=False,
primitive=False,
):

indices2 = np.copy(ind)
positions2 = np.copy(pos)
neighbors2 = np.copy(neighbors)
Expand Down
1 change: 1 addition & 0 deletions lattpy/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ def text(ax, strings, positions, offset=None, **kwargs):
# Lattice plotting
# ======================================================================================


# noinspection PyAbstractClass
class CircleCollection(Collection):
"""Custom circle collection
Expand Down
2 changes: 0 additions & 2 deletions lattpy/shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ def contains(self, points, tol=1e-10):
)

def plot(self, ax, color="k", lw=0.0, alpha=0.2, **kwargs): # pragma: no cover

if self.dim == 2:
segments = self.hull.points[self.hull.simplices]
lines = draw_lines(ax, segments, color=color, lw=lw)
Expand All @@ -310,7 +309,6 @@ def plot(self, ax, color="k", lw=0.0, alpha=0.2, **kwargs): # pragma: no cover
surfaces = ax.fill(*segments.T, fc=color, alpha=alpha, ec=None)

elif self.dim == 3:

segments = np.array(
[self.hull.points[np.append(i, i[0])] for i in self.hull.simplices]
)
Expand Down
1 change: 0 additions & 1 deletion lattpy/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ def draw(
draw=True,
fill=True,
): # pragma: no cover

if ax is None:
fig = plt.figure()
ax = fig.add_subplot(111, projection="3d" if self.dim == 3 else None)
Expand Down
1 change: 0 additions & 1 deletion lattpy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@


class LatticeError(Exception):

pass


Expand Down

0 comments on commit 852005e

Please sign in to comment.