Skip to content

Commit dc162c4

Browse files
committed
Use dropdims in place of squeeze
1 parent b53fd92 commit dc162c4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
julia 0.6
2-
Compat 1.0.0
2+
Compat 1.1.0
33
DataStructures 0.2.9
44
IterTools 0.1.0
55
ProgressMeter 0.2.1

src/ACME.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ function model_matrices(circ::Circuit, t::Rational{BigInt})
298298
merge!(res, Dict(zip([:v0 :ev :dv; :i0 :ei :di; :x0 :b :a; :q0 :eq_full :dq_full],
299299
matsplit(x, rowsizes, [1; nu(circ); nx(circ)]))))
300300
for v in (:v0, :i0, :x0, :q0)
301-
res[v] = squeeze(res[v], dims=2)
301+
res[v] = dropdims(res[v], dims=2)
302302
end
303303

304304
p = [pv(circ) pi(circ) px(circ)//2+pxd(circ)//t pq(circ)]

src/compat.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See accompanying license file.
33

44
import Compat
5-
using Compat: @warn, BitSet, argmax, argmin, copyto!, findall, rmul!, undef
5+
using Compat: @warn, BitSet, argmax, argmin, copyto!, dropdims, findall, rmul!, undef
66
using Compat.Markdown: @doc_str
77

88
if isdefined(Base, :NamedTuple) # 0.7.0-DEV.2738 to 0.7.0-DEV.3226

0 commit comments

Comments
 (0)