Skip to content

Commit

Permalink
todo
Browse files Browse the repository at this point in the history
  • Loading branch information
ksagiyam committed Nov 16, 2024
1 parent d06c980 commit ed0e3b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions firedrake/functionspaceimpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ def _components(self):

@PETSc.Log.EventDecorator()
def sub(self, i):
bound = len(self._components)
if i < 0 or i >= bound:
raise IndexError("Invalid component %d, not in [0, %d)" % (i, bound))
#bound = len(self._components)

Check failure on line 198 in firedrake/functionspaceimpl.py

View workflow job for this annotation

GitHub Actions / Run linter

E265

firedrake/functionspaceimpl.py:198:9: E265 block comment should start with '# '
#if i < 0 or i >= bound:

Check failure on line 199 in firedrake/functionspaceimpl.py

View workflow job for this annotation

GitHub Actions / Run linter

E265

firedrake/functionspaceimpl.py:199:9: E265 block comment should start with '# '
# raise IndexError("Invalid component %d, not in [0, %d)" % (i, bound))
if len(self) == 1:
return self._components[i]
else:
Expand Down

0 comments on commit ed0e3b1

Please sign in to comment.