Skip to content

Commit ffb6b01

Browse files
committed
maint: removed atleast1d from out
Signed-off-by: Nick Papior <[email protected]>
1 parent e8b53f3 commit ffb6b01

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sisl/io/siesta/out.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,7 @@ def return_forces(Fs):
332332
if max and total:
333333
return (Fs[..., :-1], Fs[..., -1])
334334
elif max and not all:
335-
# This will return a float
336-
return np.atleast_1d(Fs)[0]
335+
return Fs.ravel()[0]
337336
return Fs
338337

339338
if all or last:

0 commit comments

Comments
 (0)