Skip to content

Commit a0ea9dd

Browse files
authored
Remove EOL whitespace. (#63)
1 parent 43647b3 commit a0ea9dd

File tree

6 files changed

+282
-282
lines changed

6 files changed

+282
-282
lines changed

PythonKit/NumpyConversion.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,18 @@ where Element : NumpyScalarCompatible {
110110
guard Element.numpyScalarTypes.contains(numpyArray.dtype) else {
111111
return nil
112112
}
113-
113+
114114
// Only 1-D `ndarray` instances can be converted to `Array`.
115115
let pyShape = numpyArray.__array_interface__["shape"]
116116
guard let shape = Array<Int>(pyShape) else { return nil }
117117
guard shape.count == 1 else {
118118
return nil
119119
}
120-
120+
121121
// Make sure that the array is contiguous in memory. This does a copy if
122122
// the array is not already contiguous in memory.
123123
let contiguousNumpyArray = np.ascontiguousarray(numpyArray)
124-
124+
125125
guard let ptrVal =
126126
UInt(contiguousNumpyArray.__array_interface__["data"].tuple2.0) else {
127127
return nil

0 commit comments

Comments
 (0)