Skip to content

Commit f5aec7c

Browse files
authored
Merge pull request #54 from JuliaAstro/datastructures-compat
Temporary fix for DataStructures v0.19 compat
2 parents a716442 + a3af5b6 commit f5aec7c

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Aqua = "0.8"
2929
Dates = "1"
3030
DocStringExtensions = "0.8, 0.9"
3131
Makie = "0.24"
32-
ModelingToolkit = "10.3.0"
32+
ModelingToolkit = "11"
3333
OhMyThreads = "0.8"
3434
StructArrays = "0.7"
3535
Symbolics = "6,7"

docs/Project.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[deps]
22
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
3+
BibParser = "13533e5b-e1c2-4e57-8cef-cac5e52f6474"
4+
Bibliography = "f1be7e48-bf82-45af-a471-ae754a193061"
35
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
46
CondaPkg = "992eb4ea-22a4-4c89-a5bb-47a3300528ab"
57
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
@@ -19,6 +21,8 @@ TimeZones = "f269a46b-ccf7-5d73-abea-4c690281aa53"
1921

2022
[sources]
2123
SolarPosition = { path = ".." }
24+
Bibliography = { url = "https://github.com/cgarling/Bibliography.jl", rev = "patch-1" }
25+
BibParser = { url = "https://github.com/cgarling/BibParser.jl", rev = "patch-1" }
2226

2327
[compat]
2428
Documenter = "1"

ext/SolarPositionModelingToolkitExt.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ Symbolics.@register_symbolic get_zenith(pos)::Real
3939
function SolarPositionBlock(;
4040
name,
4141
t0 = Dates.now(),
42-
observer = Observer(0.0, 0.0, 0.0),
42+
observer::Observer{T} = Observer(0.0, 0.0, 0.0),
4343
algorithm = PSA(),
4444
refraction = NoRefraction(),
45-
)
45+
) where {T<:AbstractFloat}
4646
@parameters t0::DateTime = t0 [tunable = false]
47-
@parameters observer::Observer = observer [tunable = false]
47+
@parameters observer::Observer{T} = observer [tunable = false]
4848
@parameters algorithm::SolarAlgorithm = algorithm [tunable = false]
4949
@parameters refraction::RefractionAlgorithm = refraction [tunable = false]
5050

@@ -69,8 +69,8 @@ function SolarPositionBlock(;
6969
eqs,
7070
t,
7171
[azimuth, elevation, zenith],
72-
#=vars=#[t0, observer, algorithm, refraction];
73-
#=params=#name = name,
72+
[t0, observer, algorithm, refraction];
73+
name = name,
7474
)
7575
end
7676

0 commit comments

Comments
 (0)