Skip to content

Commit

Permalink
chore: change the id logic to start from 0 instead of 1 in test fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
VsevolodX committed Feb 21, 2024
1 parent e015cea commit 249ef89
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion tests/fixtures/data.py
Git LFS file not shown
2 changes: 1 addition & 1 deletion tests/fixtures/espresso/v5_4/references.py
Git LFS file not shown
8 changes: 4 additions & 4 deletions tests/fixtures/nwchem/references.py
Expand Up @@ -14,10 +14,10 @@

BASIS = {
"units": "angstrom",
"elements": [{"id": 1, "value": "O"}, {"id": 2, "value": "H"}, {"id": 3, "value": "H"}],
"elements": [{"id": 0, "value": "O"}, {"id": 1, "value": "H"}, {"id": 2, "value": "H"}],
"coordinates": [
{"id": 1, "value": [0.00000000, 0.00000000, 0.22143053]},
{"id": 2, "value": [0.00000000, 1.43042809, -0.88572213]},
{"id": 3, "value": [0.00000000, -1.43042809, -0.88572213]},
{"id": 0, "value": [0.00000000, 0.00000000, 0.22143053]},
{"id": 1, "value": [0.00000000, 1.43042809, -0.88572213]},
{"id": 2, "value": [0.00000000, -1.43042809, -0.88572213]},
],
}
2 changes: 1 addition & 1 deletion tests/unit/properties/non_scalar/test_atomic_forces.py
Expand Up @@ -5,7 +5,7 @@
ATOMIC_FORCES = {
"units": "eV/angstrom",
"name": "atomic_forces",
"values": [{"id": 1, "value": [-3.9e-07, -2.4e-07, 0.0]}, {"id": 2, "value": [3.9e-07, 2.4e-07, 0.0]}],
"values": [{"id": 0, "value": [-3.9e-07, -2.4e-07, 0.0]}, {"id": 1, "value": [3.9e-07, 2.4e-07, 0.0]}],
}


Expand Down
2 changes: 1 addition & 1 deletion tests/unit/properties/non_scalar/test_magnetic_moments.py
Expand Up @@ -5,7 +5,7 @@
MAGNETIC_MOMENTS = {
"units": "uB",
"name": "magnetic_moments",
"values": [{"id": 1, "value": [0, 0, 1.235]}, {"id": 2, "value": [0, 0, -1.235]}],
"values": [{"id": 0, "value": [0, 0, 1.235]}, {"id": 1, "value": [0, 0, -1.235]}],
}


Expand Down

0 comments on commit 249ef89

Please sign in to comment.