Skip to content

Commit

Permalink
refactor: format
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Jan 1, 2024
1 parent b1a7f72 commit 0166940
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/SymbolicIndexingInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ include("trait.jl")

export is_variable, variable_index, variable_symbols, is_parameter, parameter_index,
parameter_symbols, is_independent_variable, independent_variable_symbols, is_observed,
observed, is_time_dependent, constant_structure, symbolic_container, all_variable_symbols,
observed, is_time_dependent, constant_structure, symbolic_container,
all_variable_symbols,
all_symbols, solvedvariables, allvariables
include("interface.jl")

Expand Down
4 changes: 3 additions & 1 deletion src/symbol_cache.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ function is_time_dependent(sc::SymbolCache)
end
constant_structure(::SymbolCache) = true
all_variable_symbols(sc::SymbolCache) = variable_symbols(sc)
all_symbols(sc::SymbolCache) = vcat(variable_symbols(sc), parameter_symbols(sc), independent_variable_symbols(sc))
function all_symbols(sc::SymbolCache)
vcat(variable_symbols(sc), parameter_symbols(sc), independent_variable_symbols(sc))

Check warning on line 76 in src/symbol_cache.jl

View check run for this annotation

Codecov / codecov/patch

src/symbol_cache.jl#L75-L76

Added lines #L75 - L76 were not covered by tests
end

function Base.copy(sc::SymbolCache)
return SymbolCache(sc.variables === nothing ? nothing : copy(sc.variables),
Expand Down
2 changes: 1 addition & 1 deletion test/parameter_indexing_test.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using SymbolicIndexingInterface
using Test

struct FakeIntegrator{S,P}
struct FakeIntegrator{S, P}
sys::S
p::P
end
Expand Down

0 comments on commit 0166940

Please sign in to comment.