Skip to content

Commit cda4dca

Browse files
committed
formatting
1 parent a5b7bf9 commit cda4dca

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Diff for: package/MDAnalysis/core/groups.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -3255,14 +3255,14 @@ def select_atoms(self, sel, *othersel, periodic=True, rtol=1e-05,
32553255
coordinate greater than 5.0; ``prop abs z <= 5.0`` selects all
32563256
atoms within -5.0 <= z <= 5.0.
32573257
relprop [abs] *property* *operator* *value* *selection*
3258-
selects atoms based on position relative to the center of
3259-
geometry (COG) of a given selection, using *property*
3260-
**x**, **y**, or **z** coordinate. Supports the **abs**
3261-
keyword (for absolute value) and the following
3258+
selects atoms based on position relative to the center of
3259+
geometry (COG) of a given selection, using *property*
3260+
**x**, **y**, or **z** coordinate. Supports the **abs**
3261+
keyword (for absolute value) and the following
32623262
*operators*: **<, >, <=, >=, ==, !=**.
3263-
For example, ``relprop z >= 5.0 protein`` selects all atoms
3264-
with z coordinate greater than 5.0 relative to the COG
3265-
of protein; ``relprop abs z <= 5.0 protein`` selects all
3263+
For example, ``relprop z >= 5.0 protein`` selects all atoms
3264+
with z coordinate greater than 5.0 relative to the COG
3265+
of protein; ``relprop abs z <= 5.0 protein`` selects all
32663266
atoms within -5.0 <= z <= 5.0 relative to the COG of protein.
32673267
sphzone *radius* *selection*
32683268
Selects all atoms that are within *radius* of the center of

Diff for: testsuite/MDAnalysisTests/core/test_atomselections.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ def test_invalid_relprop_selection(self, universe):
10921092
universe.select_atoms("relprop parsnip < 2 index 0")
10931093
with pytest.raises(SelectionError, match="Unknown selection token"):
10941094
universe.select_atoms("relprop z < 2")
1095-
with pytest.raises(SelectionError, match="Expected one of x y z for property"):
1095+
with pytest.raises(SelectionError, match="Expected one of"):
10961096
universe.select_atoms("relprop id < 2 index 0")
10971097
empty_universe = mda.Universe.empty(
10981098
6, 2, atom_resindex=[0, 0, 0, 1, 1, 1]

0 commit comments

Comments
 (0)