Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/Lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Use Julia cache
uses: julia-actions/cache@v2
- name: Install JuliaFormatter.jl
run: julia -e 'using Pkg; pkg"add JuliaFormatter"'
run: julia -e 'using Pkg; pkg"add JuliaFormatter@1"'
- name: Setup Python
uses: actions/setup-python@v5
with:
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
language: fail
files: "\\.rej$"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-json
- id: check-toml
Expand All @@ -26,7 +26,7 @@ repos:
- id: check-merge-conflict
args: [--assume-in-merge]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.41.0
rev: v0.45.0
hooks:
- id: markdownlint-fix
- repo: https://github.com/citation-file-format/cffconvert
Expand All @@ -40,10 +40,10 @@ repos:
types_or: [yaml, json]
exclude: ".copier-answers.yml"
- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
rev: v1.37.1
hooks:
- id: yamllint
- repo: https://github.com/domluna/JuliaFormatter.jl
rev: v1.0.60
rev: v1.0.62
hooks:
- id: julia-formatter
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GraphDynamicalSystems"
uuid = "13529e2e-ed53-56b1-bd6f-420b01fca819"
authors = ["Reuben Gardos Reid <[email protected]>"]
version = "0.2.0"
version = "0.0.2"

[deps]
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
Expand Down
2 changes: 1 addition & 1 deletion src/boolean_networks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module BooleanNetworks

using DocStringExtensions
using MetaGraphsNext: MetaGraph, add_edge!, SimpleDiGraph, nv, labels
using DynamicalSystemsBase: ArbitrarySteppable, current_parameters
using DynamicalSystemsBase: ArbitrarySteppable, current_parameters, initial_state
using SoleLogics:
Formula,
Atom,
Expand Down
4 changes: 2 additions & 2 deletions src/qualitative_networks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,9 @@

Interpret target functions from a [`QualitativeNetwork`](@ref).
"""
function interpret(e::Union{Expr,Symbol,Int,Atom}, qn::QN)
function interpret(e::Union{Expr,Symbol,Int}, qn::QN)
@match e begin
::Symbol => get_state(qn, e)
::Atom => get_state(qn, Symbol(value(e)))
::Int => e
:($v1 + $v2) => interpret(v1, qn) + interpret(v2, qn)
:($v1 - $v2) => interpret(v1, qn) - interpret(v2, qn)
Expand All @@ -257,6 +256,7 @@
_ => error("Unhandled Expr in `interpret`: $e")
end
end
interpret(e::Atom, qn::QN) = get_state(qn, Symbol(value(e)))

Check warning on line 259 in src/qualitative_networks.jl

View check run for this annotation

Codecov / codecov/patch

src/qualitative_networks.jl#L259

Added line #L259 was not covered by tests

"""
$(TYPEDSIGNATURES)
Expand Down
Loading