Skip to content

Commit 673c780

Browse files
Merge pull request #1098 from jClugstor/move_to_SciMLBase
Move general utility functions and errors from DiffEqBase to SciMLBase
2 parents 453dd52 + 8d5ec61 commit 673c780

11 files changed

+1345
-15
lines changed

Project.toml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,27 @@ Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
2929
RuntimeGeneratedFunctions = "7e49a35a-f44a-4d26-94aa-eba1b4ca6b47"
3030
SciMLOperators = "c0aeaf25-5076-4817-a8d5-81caf7dfa961"
3131
SciMLStructures = "53ae85a6-f571-4167-b2af-e1d143709226"
32+
Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3"
3233
StaticArraysCore = "1e83bf80-4336-4d27-bf5d-d5a4f845583c"
3334
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
3435
SymbolicIndexingInterface = "2efcf032-c050-4f8e-a9bb-153293bab1f5"
3536

3637
[weakdeps]
3738
ChainRules = "082447d4-558c-5d27-93f4-14fc19e9eca2"
3839
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
40+
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
41+
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
3942
MLStyle = "d8e11817-5142-5d16-987a-aa16d5891078"
4043
Makie = "ee78f7c6-11fb-53f2-987a-cfe4a2b5a57a"
44+
Measurements = "eff96d63-e80a-5855-80a2-b1b0885c5ab7"
45+
MonteCarloMeasurements = "0987c9cc-fe09-11e8-30f0-b96dd679fdca"
46+
Mooncake = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
4147
PartialFunctions = "570af359-4316-4cb7-8c74-252c00c2016b"
4248
PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0"
4349
PythonCall = "6099a3de-0909-46bc-b1f4-468b9a2dfc0d"
4450
RCall = "6f49c342-dc21-5d91-9882-a32aef131414"
51+
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
52+
Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
4553
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
4654

4755
[extensions]
@@ -53,6 +61,12 @@ SciMLBasePyCallExt = "PyCall"
5361
SciMLBasePythonCallExt = "PythonCall"
5462
SciMLBaseRCallExt = "RCall"
5563
SciMLBaseZygoteExt = ["Zygote", "ChainRulesCore"]
64+
SciMLBaseDistributionsExt = "Distributions"
65+
SciMLBaseMonteCarloMeasurementsExt = "MonteCarloMeasurements"
66+
SciMLBaseMooncakeExt = "Mooncake"
67+
SciMLBaseReverseDiffExt = "ReverseDiff"
68+
SciMLBaseTrackerExt = "Tracker"
69+
SciMLBaseForwardDiffExt = "ForwardDiff"
5670

5771
[compat]
5872
ADTypes = "0.2.5,1.0.0"
@@ -64,6 +78,7 @@ ChainRulesCore = "1.18"
6478
CommonSolve = "0.2.4"
6579
ConstructionBase = "1.5"
6680
Distributed = "1.10"
81+
Distributions = "0.25"
6782
DocStringExtensions = "0.9"
6883
EnumX = "1"
6984
ForwardDiff = "0.10.36, 1"
@@ -75,6 +90,9 @@ MLStyle = "0.4.17"
7590
Makie = "0.20, 0.21, 0.22, 0.23, 0.24"
7691
Markdown = "1.10"
7792
Moshi = "0.3"
93+
Mooncake = "0.4"
94+
Measurements = "2"
95+
MonteCarloMeasurements = "1"
7896
PartialFunctions = "1.1"
7997
PreallocationTools = "0.4.31"
8098
PrecompileTools = "1.2"
@@ -86,15 +104,18 @@ RCall = "0.14.0"
86104
RecipesBase = "1.3.4"
87105
RecursiveArrayTools = "3.35"
88106
Reexport = "1"
107+
ReverseDiff = "1"
89108
RuntimeGeneratedFunctions = "0.5.12"
90109
SciMLOperators = "1.3"
91110
SciMLStructures = "1.1"
92111
StableRNGs = "1.0"
112+
Static = "1"
93113
StaticArrays = "1.7"
94114
StaticArraysCore = "1.4"
95115
Statistics = "1.10"
96116
SymbolicIndexingInterface = "0.3.36"
97117
Tables = "1.11"
118+
Tracker = "0.2"
98119
Zygote = "0.7.10"
99120
julia = "1.10"
100121

@@ -116,4 +137,4 @@ UnicodePlots = "b8865327-cd53-5732-bb35-84acbb429228"
116137
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
117138

118139
[targets]
119-
test = ["Aqua", "ForwardDiff", "MLStyle", "PartialFunctions", "Pkg", "SafeTestsets", "Serialization", "StableRNGs", "StaticArrays", "Tables", "Test", "UnicodePlots", "Zygote"]
140+
test = ["Aqua", "ForwardDiff", "MLStyle", "PartialFunctions", "Pkg", "SafeTestsets", "Serialization", "StableRNGs", "StaticArrays", "Tables", "Test", "UnicodePlots", "Zygote", "Distributions", "MonteCarloMeasurements", "Measurements", "ReverseDiff", "Tracker"]

ext/SciMLBaseDistributionsExt.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module SciMLBaseDistributionsExt
2+
3+
using Distributions, SciMLBase
4+
5+
SciMLBase.handle_distribution_u0(_u0::Distributions.Sampleable) = rand(_u0)
6+
SciMLBase.isdistribution(_u0::Distributions.Sampleable) = true
7+
8+
end

0 commit comments

Comments
 (0)