Skip to content

Commit 859e426

Browse files
committed
DOC: Fix example output
1 parent bedff0b commit 859e426

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

chempy/symmetry/representations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def from_atoms(cls, n_atoms, group):
429429
--------
430430
>>> rep = Reducible.from_atoms([4, 2, 4, 2], 'c2v')
431431
>>> rep.gamma
432-
>>> array([12, -2, 4, 2])
432+
array([12, -2, 4, 2])
433433
"""
434434
n_atoms = np.array(n_atoms)
435435

chempy/symmetry/salcs.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def _expand_irreducible(irred, group):
7272
Example
7373
------
7474
>>> _expand_irreducible((2, -1, 0), 'c3v')
75-
>>> [2, -1, -1, 0, 0, 0]
75+
[2, -1, -1, 0, 0, 0]
7676
7777
"""
7878
expanded_irred = []
@@ -154,8 +154,7 @@ def _angles_to_vectors(ligand_angles):
154154
Example
155155
-------
156156
>>> _angles_to_vectors([[0, 90], [90, 90], [180, 90], [-90, 90]])
157-
>>> [[1.0, 0.0, 0.0], [0.0, 1.0, 0.0],
158-
[-1.0, 0.0, 0.0], [0.0, -1.0, 0.0]])
157+
[[1, 0, 0], [0, 1, 0], [-1, 0, 0], [0, -1, 0]]
159158
160159
References
161160
----------
@@ -275,7 +274,7 @@ def _weights_to_symbols(weights, symbols):
275274
>>> import sympy
276275
>>> a, b, c = sympy.symbols('a b c')
277276
>>> _weights_to_symbols([[1, 2, 1], [0, 1, -1], [0, 0, 0]], [a, b, c])
278-
>>> [a + 2*b + c, b - c, 0]
277+
[a + 2*b + c, b - c, 0]
279278
280279
"""
281280
symbolic_wt = []

0 commit comments

Comments
 (0)