Skip to content

Commit

Permalink
add delete_bt_layer and selective_dynamics tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jic198 committed Jun 25, 2023
1 parent 6e18256 commit 407a590
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_grain.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ def setUp(self):
def test_make_supercell(self):
self.structure.make_supercell([2, 1, 1])
assert self.structure.formula == 'Fe4'

def test_delete_bt_layer(self):
self.structure.delete_bt_layer('b')
assert len(self.structure) == 1

def test_add_selective_dynamics(self):
self.structure.add_selective_dynamics([0])
assert self.structure.site_properties['selective_dynamics'] == [[False, False, False], [True, True, True]]

# def test_from_mp_id(self):
# s = Grain.from_mp_id('mp-13')
Expand Down

0 comments on commit 407a590

Please sign in to comment.