Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 19, 2023
1 parent b941705 commit 954f124
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/amrex/space1d/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
__license__ = amrex_1d_pybind.__license__
__author__ = amrex_1d_pybind.__author__


# at this place we can enhance Python classes with additional methods written
# in pure Python or add some other Python logic
#
def d_decl(x,y,z):
def d_decl(x, y, z):
return (x,)
5 changes: 3 additions & 2 deletions src/amrex/space2d/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
__license__ = amrex_2d_pybind.__license__
__author__ = amrex_2d_pybind.__author__


# at this place we can enhance Python classes with additional methods written
# in pure Python or add some other Python logic
#
def d_decl(x,y,z):
return (x,y)
def d_decl(x, y, z):
return (x, y)
5 changes: 3 additions & 2 deletions src/amrex/space3d/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@
__license__ = amrex_3d_pybind.__license__
__author__ = amrex_3d_pybind.__author__


# at this place we can enhance Python classes with additional methods written
# in pure Python or add some other Python logic
#
def d_decl(x,y,z):
return (x,y,z)
def d_decl(x, y, z):
return (x, y, z)
5 changes: 3 additions & 2 deletions tests/test_intvect.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def test_iv_iter():

np.testing.assert_allclose(a1, b1)


def test_iv_d_decl():
iv = amr.IntVect(*amr.d_decl(1,2,3))
assert iv == amr.IntVect(1,2,3)
iv = amr.IntVect(*amr.d_decl(1, 2, 3))
assert iv == amr.IntVect(1, 2, 3)

0 comments on commit 954f124

Please sign in to comment.