Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blechta committed Nov 16, 2017
1 parent faffacc commit 20bc75f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions FIAT/gauss_legendre.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class GaussLegendreDualSet(dual_set.DualSet):
def __init__(self, ref_el, degree):
entity_ids = {0: {0: [], 1: []},
1: {0: list(range(0, degree+1))}}
l = quadrature.GaussLegendreQuadratureLineRule(ref_el, degree+1)
nodes = [functional.PointEvaluation(ref_el, x) for x in l.pts]
lr = quadrature.GaussLegendreQuadratureLineRule(ref_el, degree+1)
nodes = [functional.PointEvaluation(ref_el, x) for x in lr.pts]

super(GaussLegendreDualSet, self).__init__(nodes, ref_el, entity_ids)

Expand Down
4 changes: 2 additions & 2 deletions FIAT/gauss_lobatto_legendre.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class GaussLobattoLegendreDualSet(dual_set.DualSet):
def __init__(self, ref_el, degree):
entity_ids = {0: {0: [0], 1: [degree]},
1: {0: list(range(1, degree))}}
l = quadrature.GaussLobattoLegendreQuadratureLineRule(ref_el, degree+1)
nodes = [functional.PointEvaluation(ref_el, x) for x in l.pts]
lr = quadrature.GaussLobattoLegendreQuadratureLineRule(ref_el, degree+1)
nodes = [functional.PointEvaluation(ref_el, x) for x in lr.pts]

super(GaussLobattoLegendreDualSet, self).__init__(nodes, ref_el, entity_ids)

Expand Down
2 changes: 1 addition & 1 deletion test/unit/test_fiat.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
from FIAT.nodal_enriched import NodalEnrichedElement


I = UFCInterval()
I = UFCInterval() # noqa: E741
T = UFCTriangle()
S = UFCTetrahedron()

Expand Down

0 comments on commit 20bc75f

Please sign in to comment.