Skip to content

Commit d3fd3bf

Browse files
authored
Merge pull request #224 from JuliaDynamics/hw/ext_namespace
namespace extensions
2 parents dae5ef6 + 93ede8c commit d3fd3bf

File tree

8 files changed

+10
-10
lines changed

8 files changed

+10
-10
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
4040
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
4141

4242
[extensions]
43-
CUDAExt = ["CUDA", "Adapt"]
44-
MTKExt = ["ModelingToolkit", "Symbolics"]
45-
SymbolicsExt = ["Symbolics", "MacroTools"]
43+
NetworkDynamicsCUDAExt = ["CUDA", "Adapt"]
44+
NetworkDynamicsMTKExt = ["ModelingToolkit", "Symbolics"]
45+
NetworkDynamicsSymbolicsExt = ["Symbolics", "MacroTools"]
4646

4747
[compat]
4848
Adapt = "4.0.4"

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ for example in filter(contains(r".jl$"), readdir(example_dir, join=true))
3333
Literate.script(example, outdir; keep_comments=true)
3434
end
3535

36-
mtkext = Base.get_extension(NetworkDynamics, :MTKExt)
36+
mtkext = Base.get_extension(NetworkDynamics, :NetworkDynamicsMTKExt)
3737
kwargs = (;
3838
root=joinpath(pkgdir(NetworkDynamics), "docs"),
3939
sitename="NetworkDynamics",
File renamed without changes.
File renamed without changes.

ext/CUDAExt.jl renamed to ext/NetworkDynamicsCUDAExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module CUDAExt
1+
module NetworkDynamicsCUDAExt
22
using NetworkDynamics: Network, NetworkLayer, ComponentBatch,
33
KAAggregator, AggregationMap, SparseAggregator,
44
LazyGBufProvider, EagerGBufProvider, LazyGBuf,

ext/MTKExt.jl renamed to ext/NetworkDynamicsMTKExt.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module MTKExt
1+
module NetworkDynamicsMTKExt
22

33
using ModelingToolkit: Symbolic, iscall, operation, arguments, build_function
44
using ModelingToolkit: ModelingToolkit, Equation, ODESystem, Differential
@@ -13,7 +13,7 @@ using NetworkDynamics: NetworkDynamics, set_metadata!,
1313
PureFeedForward, FeedForward, NoFeedForward, PureStateMap
1414
import NetworkDynamics: VertexModel, EdgeModel, AnnotatedSym
1515

16-
include("MTKUtils.jl")
16+
include("MTKExt_utils.jl")
1717

1818
"""
1919
VertexModel(sys::ODESystem, inputs, outputs;
@@ -478,7 +478,7 @@ _all_rhs_symbols(eqs) = mapreduce(eq->get_variables(eq.rhs), ∪, eqs, init=Set{
478478

479479
using PrecompileTools: @compile_workload
480480
@compile_workload begin
481-
include("precompile_workload.jl")
481+
include("MTKExt_precomp_workload.jl")
482482
end
483483

484484
end

ext/SymbolicsExt.jl renamed to ext/NetworkDynamicsSymbolicsExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module SymbolicsExt
1+
module NetworkDynamicsSymbolicsExt
22

33
using Symbolics: Symbolics, @variables, Num
44
using MacroTools: postwalk, @capture

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ haskey(ENV, "BUILDKITE") && @test CUDA.functional() # fail early in buildkite if
5555

5656
# check on the precompile files
5757
@safetestset "Precompile workload" begin include("../src/precompile_workload.jl") end
58-
@safetestset "MTK precompile workload" begin include("../ext/precompile_workload.jl") end
58+
@safetestset "MTK precompile workload" begin include("../ext/MTKExt_precomp_workload.jl") end
5959
end
6060

6161
@testset "Test Doc Examples" begin

0 commit comments

Comments
 (0)