Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in the extension names #582

Merged
merged 6 commits into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[extensions]
OptimizationEnzymeExt = "Enzyme"
OptimizationFinitediffExt = "FiniteDiff"
OptimizationForwarddiffExt = "ForwardDiff"
OptimizationFiniteDiffExt = "FiniteDiff"
OptimizationForwardDiffExt = "ForwardDiff"
OptimizationMTKExt = "ModelingToolkit"
OptimizationReversediffExt = "ReverseDiff"
OptimizationSparseFinitediffExt = ["SparseDiffTools", "FiniteDiff"]
OptimizationSparseForwarddiffExt = ["SparseDiffTools", "ForwardDiff"]
OptimizationReverseDiffExt = "ReverseDiff"
OptimizationSparseFiniteDiffExt = ["SparseDiffTools", "FiniteDiff"]
OptimizationSparseForwardDiffExt = ["SparseDiffTools", "ForwardDiff"]
OptimizationTrackerExt = "Tracker"
OptimizationZygoteExt = "Zygote"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module OptimizationFinitediffExt
module OptimizationFiniteDiffExt

import SciMLBase: OptimizationFunction
import Optimization, ArrayInterface
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module OptimizationForwarddiffExt
module OptimizationForwardDiffExt

import SciMLBase: OptimizationFunction
import Optimization, ArrayInterface
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module OptimizationReversediffExt
module OptimizationReverseDiffExt

import SciMLBase: OptimizationFunction
import Optimization
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module OptimizationSparseFinitediffExt
module OptimizationSparseFiniteDiffExt

import SciMLBase: OptimizationFunction
import Optimization, ArrayInterface
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module OptimizationSparseForwarddiffExt
module OptimizationSparseForwardDiffExt

import SciMLBase: OptimizationFunction
import Optimization, ArrayInterface
Expand Down
20 changes: 10 additions & 10 deletions src/Optimization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@
function __init__()
# AD backends
@require FiniteDiff="6a86dc24-6348-571c-b903-95158fe2bd41" begin
include("../ext/OptimizationFinitediffExt.jl")
using .OptimizationFinitediffExt
include("../ext/OptimizationFiniteDiffExt.jl")
using .OptimizationFiniteDiffExt

Check warning on line 32 in src/Optimization.jl

View check run for this annotation

Codecov / codecov/patch

src/Optimization.jl#L31-L32

Added lines #L31 - L32 were not covered by tests
end
@require ForwardDiff="f6369f11-7733-5829-9624-2563aa707210" begin
include("../ext/OptimizationForwarddiffExt.jl")
using .OptimizationForwarddiffExt
include("../ext/OptimizationForwardDiffExt.jl")
using .OptimizationForwardDiffExt

Check warning on line 36 in src/Optimization.jl

View check run for this annotation

Codecov / codecov/patch

src/Optimization.jl#L35-L36

Added lines #L35 - L36 were not covered by tests
end
@require ReverseDiff="37e2e3b7-166d-5795-8a7a-e32c996b4267" begin
include("../ext/OptimizationReversediffExt.jl")
using .OptimizationReversediffExt
include("../ext/OptimizationReverseDiffExt.jl")
using .OptimizationReverseDiffExt

Check warning on line 40 in src/Optimization.jl

View check run for this annotation

Codecov / codecov/patch

src/Optimization.jl#L39-L40

Added lines #L39 - L40 were not covered by tests
end
@require Tracker="9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c" begin
include("../ext/OptimizationTrackerExt.jl")
Expand All @@ -57,13 +57,13 @@
end
@require SparseDiffTools="47a9eef4-7e08-11e9-0b38-333d64bd3804" begin
@require ForwardDiff="f6369f11-7733-5829-9624-2563aa707210" begin
include("../ext/OptimizationSparseForwarddiffExt.jl")
using .OptimizationSparseForwarddiffExt
include("../ext/OptimizationSparseForwardDiffExt.jl")
using .OptimizationSparseForwardDiffExt

Check warning on line 61 in src/Optimization.jl

View check run for this annotation

Codecov / codecov/patch

src/Optimization.jl#L60-L61

Added lines #L60 - L61 were not covered by tests
end

@require FiniteDiff="6a86dc24-6348-571c-b903-95158fe2bd41" begin
include("../ext/OptimizationSparseFinitediffExt.jl")
using .OptimizationSparseFinitediffExt
include("../ext/OptimizationSparseFiniteDiffExt.jl")
using .OptimizationSparseFiniteDiffExt

Check warning on line 66 in src/Optimization.jl

View check run for this annotation

Codecov / codecov/patch

src/Optimization.jl#L65-L66

Added lines #L65 - L66 were not covered by tests
end
end
end
Expand Down
Loading