Skip to content

Revert "Move Statistics to an extension" #567

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

Merged
merged 1 commit into from
Aug 22, 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
6 changes: 2 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
LowRankMatrices = "e65ccdef-c354-471a-8090-89bec1c20ec3"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[weakdeps]
DualNumbers = "fa6b7ba4-c1ee-5f82-b5fc-ecf0adba8f74"
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[extensions]
ApproxFunBaseDualNumbersExt = "DualNumbers"
ApproxFunBaseSpecialFunctionsExt = "SpecialFunctions"
ApproxFunBaseStatisticsExt = "Statistics"

[compat]
AbstractFFTs = "0.5, 1"
Expand Down Expand Up @@ -59,8 +58,7 @@ DualNumbers = "fa6b7ba4-c1ee-5f82-b5fc-ecf0adba8f74"
Infinities = "e1ba4f0e-776d-440f-acd9-e1d2e9742647"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Aqua", "Random", "Infinities", "Test", "SpecialFunctions", "DualNumbers", "Statistics"]
test = ["Aqua", "Random", "Infinities", "Test", "SpecialFunctions", "DualNumbers"]
9 changes: 0 additions & 9 deletions ext/ApproxFunBaseStatisticsExt.jl

This file was deleted.

1 change: 1 addition & 0 deletions src/ApproxFunBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ using LinearAlgebra
using LowRankMatrices
using SparseArrays
using StaticArrays: SVector, @SArray, SArray
import Statistics: mean

import DomainSets: Domain, indomain, UnionDomain, ProductDomain, Point, ∂,
SetdiffDomain, Interval, ChebyshevInterval, boundary,
Expand Down
6 changes: 0 additions & 6 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ using Infinities
using LinearAlgebra
using Random
using SpecialFunctions
using Statistics
using Test

@testset "Project quality" begin
Expand Down Expand Up @@ -793,8 +792,3 @@ end

@test @inferred(chebyshev_clenshaw(BigInt[1], 1)) == 1
end

@testset "Statistics" begin
@test mean(Segment(1,3)) == 2
@test mean(1..3) == 2
end