Skip to content

Commit ad0f733

Browse files
committed
Merge branch 'release-0.9.0'
2 parents 2284a90 + a0a251e commit ad0f733

File tree

16 files changed

+161
-164
lines changed

16 files changed

+161
-164
lines changed

.travis.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: julia
22
julia:
3-
- 0.6
4-
- 0.7
53
- 1.0
64
- 1.1
5+
- 1.2
6+
- 1.3
77
- nightly
88
notifications:
99
email: false
@@ -23,18 +23,11 @@ jobs:
2323
script:
2424
- julia --project=docs/ -e 'using Pkg; Pkg.instantiate(); Pkg.develop(PackageSpec(path=pwd()))'
2525
- julia --project=docs/ docs/make.jl
26-
- <<: *docs
27-
julia: 0.7
28-
script:
29-
- julia --project=docs/ -e 'using Pkg; Pkg.instantiate()'
30-
- julia -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd()))'
31-
- julia --project=docs/ docs/make.jl
3226
- <<: *docs
3327
julia: 1.1
3428
- <<: *docs
35-
julia: nightly
29+
julia: 1.2
3630
- <<: *docs
37-
julia: 0.6
38-
script:
39-
- julia -e 'Pkg.add("Documenter", v"0.19.6", v"0.19.6+"); Pkg.clone(pwd())'
40-
- julia docs/make.jl
31+
julia: 1.3
32+
- <<: *docs
33+
julia: nightly

Project.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name = "ACME"
2+
uuid = "ca8b7239-ccd3-5cce-807f-2072f3f0d108"
3+
version = "0.9.0"
4+
5+
[deps]
6+
IterTools = "c8e1da08-722c-5040-9ed9-7db0dc04731e"
7+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
8+
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
9+
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
10+
ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca"
11+
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
12+
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
13+
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
14+
15+
[compat]
16+
IterTools = "1"
17+
OrderedCollections = "1"
18+
ProgressMeter = "0.6, 0.7, 0.8, 0.9, 1"
19+
StaticArrays = "0.8, 0.9, 0.10, 0.11"
20+
julia = "1"
21+
22+
[extras]
23+
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
24+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
25+
FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341"
26+
27+
[targets]
28+
test = ["Test", "FFTW", "SparseArrays"]

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# ACME.jl - Analog Circuit Modeling and Emulation for Julia
22

33
[![Join the chat at https://gitter.im/HSU-ANT/ACME.jl](https://badges.gitter.im/HSU-ANT/ACME.jl.svg)](https://gitter.im/HSU-ANT/ACME.jl?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4-
[![Documentation](https://img.shields.io/badge/docs-v0.8.0-blue.svg)](https://hsu-ant.github.io/ACME.jl/v0.8.0/)
4+
[![Documentation](https://img.shields.io/badge/docs-v0.9.0-blue.svg)](https://hsu-ant.github.io/ACME.jl/v0.9.0/)
5+
[![DOI](https://zenodo.org/badge/48224425.svg)](https://zenodo.org/badge/latestdoi/48224425)
6+
57

68
ACME is a [Julia](http://julialang.org/) package for the simulation of
79
electrical circuits, focusing on audio effect circuits. It allows to
@@ -122,7 +124,7 @@ fail to run altogether.
122124

123125
## Moving on
124126

125-
There is some [documentation](https://hsu-ant.github.io/ACME.jl/v0.8.0/)
127+
There is some [documentation](https://hsu-ant.github.io/ACME.jl/v0.9.0/)
126128
available for how
127129
to use ACME. Additionally, you can take a look at the examples that can be found
128130
in the `examples` directory below `Pkg.dir("ACME")`.

REQUIRE

Lines changed: 0 additions & 6 deletions
This file was deleted.
File renamed without changes.

docs/Manifest.toml

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,41 @@
11
[[Base64]]
22
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
33

4-
[[Compat]]
5-
deps = ["Base64", "Dates", "DelimitedFiles", "Distributed", "InteractiveUtils", "LibGit2", "Libdl", "LinearAlgebra", "Markdown", "Mmap", "Pkg", "Printf", "REPL", "Random", "Serialization", "SharedArrays", "Sockets", "SparseArrays", "Statistics", "Test", "UUIDs", "Unicode"]
6-
git-tree-sha1 = "49269e311ffe11ac5b334681d212329002a9832a"
7-
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
8-
version = "1.5.1"
9-
104
[[Dates]]
115
deps = ["Printf"]
126
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
137

14-
[[DelimitedFiles]]
15-
deps = ["Mmap"]
16-
uuid = "8bb1440f-4735-579b-a4ab-409b98df4dab"
17-
188
[[Distributed]]
199
deps = ["LinearAlgebra", "Random", "Serialization", "Sockets"]
2010
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"
2111

2212
[[DocStringExtensions]]
23-
deps = ["LibGit2", "Markdown", "Pkg", "Test"]
24-
git-tree-sha1 = "1df01539a1c952cef21f2d2d1c092c2bcf0177d7"
13+
git-tree-sha1 = "0513f1a8991e9d83255e0140aace0d0fc4486600"
2514
uuid = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
26-
version = "0.6.0"
15+
version = "0.8.0"
16+
17+
[DocStringExtensions.deps]
18+
LibGit2 = "76f85450-5226-5b5a-8eaa-529ad045b433"
19+
Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
20+
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
21+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2722

2823
[[Documenter]]
29-
deps = ["Compat", "DocStringExtensions", "Logging", "REPL"]
30-
git-tree-sha1 = "d7b6266f1f87a8c85ce4c1f9c0e9ba3b7831ce1d"
24+
deps = ["Base64", "DocStringExtensions", "InteractiveUtils", "JSON", "LibGit2", "Logging", "Markdown", "REPL", "Test", "Unicode"]
25+
git-tree-sha1 = "1b6ae3796f60311e39cd1770566140d2c056e87f"
3126
uuid = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
32-
version = "0.19.7"
27+
version = "0.23.3"
3328

3429
[[InteractiveUtils]]
3530
deps = ["LinearAlgebra", "Markdown"]
3631
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
3732

33+
[[JSON]]
34+
deps = ["Dates", "Mmap", "Parsers", "Unicode"]
35+
git-tree-sha1 = "b34d7cef7b337321e97d22242c3c2b91f476748e"
36+
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
37+
version = "0.21.0"
38+
3839
[[LibGit2]]
3940
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
4041

@@ -55,6 +56,12 @@ uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
5556
[[Mmap]]
5657
uuid = "a63ad114-7e13-5084-954f-fe012c677804"
5758

59+
[[Parsers]]
60+
deps = ["Dates", "Test"]
61+
git-tree-sha1 = "ef0af6c8601db18c282d092ccbd2f01f3f0cd70b"
62+
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
63+
version = "0.3.7"
64+
5865
[[Pkg]]
5966
deps = ["Dates", "LibGit2", "Markdown", "Printf", "REPL", "Random", "SHA", "UUIDs"]
6067
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
@@ -77,21 +84,9 @@ uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
7784
[[Serialization]]
7885
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
7986

80-
[[SharedArrays]]
81-
deps = ["Distributed", "Mmap", "Random", "Serialization"]
82-
uuid = "1a1011a3-84de-559e-8e89-a11a2f7dc383"
83-
8487
[[Sockets]]
8588
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
8689

87-
[[SparseArrays]]
88-
deps = ["LinearAlgebra", "Random"]
89-
uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
90-
91-
[[Statistics]]
92-
deps = ["LinearAlgebra", "SparseArrays"]
93-
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
94-
9590
[[Test]]
9691
deps = ["Distributed", "InteractiveUtils", "Logging", "Random"]
9792
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
33

44
[compat]
5-
Documenter = "0.19.7"
5+
Documenter = "=0.23.3"

docs/make.jl

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ using Documenter, ACME
22

33
makedocs(
44
modules = [ACME],
5-
format = :html,
65
sitename = "ACME.jl",
76
pages = Any[
87
"Home" => "index.md",
@@ -12,11 +11,9 @@ makedocs(
1211
],
1312
)
1413

15-
deploydocs(
16-
target = "build",
17-
repo = "github.com/HSU-ANT/ACME.jl.git",
18-
latest = "develop",
19-
deps = nothing,
20-
make = nothing,
21-
julia = "1.0",
22-
)
14+
if v"1.0" VERSION < v"1.1" # deploy from 1.0
15+
deploydocs(
16+
repo = "github.com/HSU-ANT/ACME.jl.git",
17+
devbranch = "develop",
18+
)
19+
end

docs/src/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@ Method for the Derivation of Non-Linear State-Space Models from Circuit
1111
Schematics"](http://www.eurasip.org/Proceedings/Eusipco/Eusipco2015/papers/1570103545.pdf).
1212

1313
```@contents
14+
Pages = [
15+
"gettingstarted.md",
16+
"ug.md",
17+
"elements.md",
18+
]
1419
```

src/ACME.jl

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
# Copyright 2015, 2016, 2017, 2018, 2019 Martin Holters
22
# See accompanying license file.
33

4-
VERSION < v"0.7.0-beta2.199" && __precompile__()
5-
64
module ACME
75

86
export DiscreteModel, run!, steadystate, steadystate!, linearize, ModelRunner
97

10-
using Compat.SparseArrays: SparseMatrixCSC, dropzeros!, findnz,
8+
using SparseArrays: SparseMatrixCSC, blockdiag, dropzeros!, findnz,
119
nonzeros, sparse, spzeros
12-
using Compat.LinearAlgebra: I, axpy!
13-
import Compat.LinearAlgebra.BLAS
10+
using LinearAlgebra: BLAS, I, axpy!, lu, rmul!
11+
using Markdown: @doc_str
1412

1513
using ProgressMeter
1614
using IterTools
17-
using DataStructures
15+
using OrderedCollections: OrderedDict
1816
using StaticArrays
1917

20-
include("compat.jl")
21-
2218
include("kdtree.jl")
2319
include("solvers.jl")
2420

@@ -60,7 +56,7 @@ mutable struct Element
6056
:pxd => (:ny,:nx), :pq => (:ny,:nq) )
6157

6258
elem = new()
63-
for (key, val) in kwargs_pairs(args)
59+
for (key, val) in args
6460
if haskey(mat_dims, key)
6561
val = convert(SparseMatrixCSC{Real,Int}, hcat(val)) # turn val into a sparse matrix whatever it is
6662
update_sizes(val, mat_dims[key])
@@ -448,14 +444,10 @@ np(model::DiscreteModel, subidx) = size(model.dqs[subidx], 1)
448444
nu(model::DiscreteModel) = size(model.b, 2)
449445
ny(model::DiscreteModel) = length(model.y0)
450446
nn(model::DiscreteModel, subidx) = size(model.fqs[subidx], 2)
451-
nn(model::DiscreteModel) = Compat.reduce(+, init=0, size(fq, 2) for fq in model.fqs)
447+
nn(model::DiscreteModel) = reduce(+, init=0, size(fq, 2) for fq in model.fqs)
452448

453449
function steadystate(model::DiscreteModel, u=zeros(nu(model)))
454-
@static if VERSION < v"0.7.0-DEV.5211"
455-
IA_LU = Compat.LinearAlgebra.lufact(I-model.a)
456-
else
457-
IA_LU = Compat.LinearAlgebra.lu(I-model.a)
458-
end
450+
IA_LU = lu(I-model.a)
459451
steady_z = zeros(nn(model))
460452
zoff = 1
461453
for idx in 1:length(model.solvers)
@@ -511,8 +503,8 @@ function linearize(model::DiscreteModel, usteady::AbstractVector{Float64}=zeros(
511503

512504
zranges[idx] = zoff:zoff+length(zsub)-1
513505
fqdzdps = [model.fqprevs[idx][:,zranges[n]] * dzdps[n] for n in 1:idx-1]
514-
dqlins[idx] = Compat.reduce(+, init=model.dqs[idx], fqdzdps .* dqlins[1:idx-1])
515-
eqlins[idx] = Compat.reduce(+, init=model.eqs[idx], fqdzdps .* eqlins[1:idx-1])
506+
dqlins[idx] = reduce(+, init=model.dqs[idx], fqdzdps .* dqlins[1:idx-1])
507+
eqlins[idx] = reduce(+, init=model.eqs[idx], fqdzdps .* eqlins[1:idx-1])
516508

517509
x0 += model.c[:,zranges[idx]] * (zsub - dzdps[idx]*psteady)
518510
a += model.c[:,zranges[idx]] * dzdps[idx] * dqlins[idx]
@@ -706,7 +698,7 @@ function gensolve(a, b, x, h, thresh=0.1)
706698
s = ait * h;
707699
jnz, nz_vals = findnz(s')
708700
nz_abs_vals = abs.(nz_vals)
709-
max_abs_val = Compat.reduce(max, init=zero(eltype(s)), nz_abs_vals)
701+
max_abs_val = reduce(max, init=zero(eltype(s)), nz_abs_vals)
710702
if max_abs_val tol # cosidered numerical zero
711703
continue
712704
end

0 commit comments

Comments
 (0)