Skip to content

Commit

Permalink
Fix docs build (#359)
Browse files Browse the repository at this point in the history
* Fix docs build

* Fix missing dispatch ( possibly)

* Again ready to squash
  • Loading branch information
AlCap23 authored Jun 10, 2022
1 parent e7300d2 commit c1098d9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
9 changes: 6 additions & 3 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ using Documenter, DataDrivenDiffEq
using Flux, SymbolicRegression
using Literate

include("pages.jl")

ENV["GKSwstype"] = "100"

# Evaluate the example directory

src = joinpath(@__DIR__, "src")
lit = joinpath(@__DIR__, "examples")
excludes = []#["symbolic_regression.jl"]

excludes = []
tutorials = []

#function create_pages(dirname = @__DIR__)
for (root, _, files) walkdir(lit), file files
file excludes && continue
fname, fext = splitext(file)
Expand All @@ -34,6 +34,9 @@ for (root, _, files) ∈ walkdir(lit), file ∈ files
end
end

# Must be after tutorials is created
include("pages.jl")

# Create the docs
makedocs(
sitename="DataDrivenDiffEq.jl",
Expand Down
16 changes: 15 additions & 1 deletion src/basis/type.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,20 @@ mutable struct Basis <: AbstractBasis
name::Symbol
"""Internal systems"""
systems::Vector{Basis}

function Basis(eqs, states, ctrls, ps, observed, iv, implicit, f, name, systems;
checks::Bool = true)

if checks
# Currently do nothing here
#check_variables(dvs, iv)
#check_parameters(ps, iv)
#check_equations(deqs, iv)
#check_equations(equations(events), iv)
#all_dimensionless([dvs; ps; iv]) || check_units(deqs)
end
new(eqs, states, ctrls, ps, observed, iv, implicit, f, name, systems)
end
end

## Constructors
Expand Down Expand Up @@ -108,7 +122,7 @@ function Basis(eqs::AbstractVector, states::AbstractVector;
end


function Basis(eqs::AbstractVector{Equation}, states::AbstractVector;
function Basis(eqs::AbstractVector{Symbolics.Equation}, states::AbstractVector;
parameters::AbstractVector = [], iv = nothing,
controls::AbstractVector = [], implicits = [],
observed::AbstractVector = [],
Expand Down

0 comments on commit c1098d9

Please sign in to comment.