Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
zekun-shi committed Oct 27, 2023
1 parent f09bbfa commit ea81714
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/integral/pw/pw_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@

class PWTest(parameterized.TestCase):

@parameterized.parameters(("C2", 3.5667, 76.5484253352856),)
@parameterized.parameters(
("C2", 3.5667, 76.5484253352856),
)
def test_init_from_name_and_lattice(
self, crystal_name: str, a: float, expected_vol: float
):
Expand Down
1 change: 1 addition & 0 deletions tests/native/xla/example_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import numpy as np
from absl import logging
from absl.testing import absltest

from d4ft.native.xla.custom_call import CustomCallMeta
from tests.native.xla.example import Parent, _Example, _ExampleMember

Expand Down
8 changes: 6 additions & 2 deletions tests/system/crystal_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@

class CrystalTest(parameterized.TestCase):

@parameterized.parameters(("C2", 3.5667, 76.5484253352856),)
@parameterized.parameters(
("C2", 3.5667, 76.5484253352856),
)
def test_init_from_name_and_lattice(
self, crystal_name: str, a: float, expected_vol: float
):
Expand All @@ -39,7 +41,9 @@ def test_init_from_name_and_lattice(

self.assertAlmostEqual(crystal.vol, expected_vol)

@parameterized.parameters(("diamond.xyz", 76.5484253352856),)
@parameterized.parameters(
("diamond.xyz", 76.5484253352856),
)
def test_init_from_xyz_file(self, xyz_file: str, expected_vol: float):
crystal = Crystal.from_xyz_file(xyz_file)
logging.info(f'cell volume:{crystal.vol}')
Expand Down

0 comments on commit ea81714

Please sign in to comment.