-
Notifications
You must be signed in to change notification settings - Fork 152
feat: do not output spin info for lmp format #886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: devel
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -48,8 +48,8 @@ def setUp(self): | |
| def tearDown(self): | ||
| pass # if os.path.isfile(self.lmp_coord_name):os.remove(self.lmp_coord_name) | ||
|
|
||
| def test_dump_input(self): | ||
| self.tmp_system.to("lammps/lmp", self.lmp_coord_name) | ||
| def test_dump_input(self, output_spins=False): | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do not add any parameter options to the test function. |
||
| self.tmp_system.to("lammps/lmp", self.lmp_coord_name, output_spins=output_spins) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For the lammps spin tests ,please set output_spins to True. |
||
| self.assertTrue(os.path.isfile(self.lmp_coord_name)) | ||
| with open(self.lmp_coord_name) as f: | ||
| c = f.read() | ||
|
|
@@ -58,9 +58,9 @@ def test_dump_input(self): | |
| 2 2 1.2621856000 0.7018028000 0.5513885000 0.0000000000 0.8000000000 0.6000000000 5.0000000000""" | ||
| self.assertTrue(coord_ref in c) | ||
|
|
||
| def test_dump_input_zero_spin(self): | ||
| def test_dump_input_zero_spin(self, output_spins=True): | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do not add any parameter options to the test function. |
||
| self.tmp_system.data["spins"] = [[[0, 0, 0], [0, 0, 0]]] | ||
| self.tmp_system.to("lammps/lmp", self.lmp_coord_name) | ||
| self.tmp_system.to("lammps/lmp", self.lmp_coord_name, output_spins=output_spins) | ||
| self.assertTrue(os.path.isfile(self.lmp_coord_name)) | ||
| with open(self.lmp_coord_name) as f: | ||
| c = f.read() | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.