Skip to content

Commit

Permalink
fixed order negation test
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Papior <[email protected]>
  • Loading branch information
zerothi committed Sep 12, 2023
1 parent addf8f1 commit 21978de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/sisl/io/siesta/fdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def _parse_output_order(order, output, order_True, order_False):
order.extend(order_True)
else:
order.extend(order_False)

order = [el for el in order if el not in rem]

return order
Expand Down
2 changes: 1 addition & 1 deletion src/sisl/io/siesta/tests/test_fdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def test_geom_order(sisl_tmp):
assert np.allclose(g.xyz, gnc.xyz)
g = fdf.read_geometry(order=['fdf', 'nc'])
assert np.allclose(g.xyz, gfdf.xyz)
g = fdf.read_geometry(order="^fdf")
g = fdf.read_geometry(True, order="^fdf")
assert np.allclose(g.xyz, gxv.xyz)


Expand Down

0 comments on commit 21978de

Please sign in to comment.