Skip to content

Commit 0c2aecc

Browse files
authored
Switch to 0.0.x (#26)
* Switch to 0.0.x * Address JET errors * Update pre-commit * Pin JuliaFormatter workflow to v1
1 parent 6f14aab commit 0c2aecc

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.github/workflows/Lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Use Julia cache
2828
uses: julia-actions/cache@v2
2929
- name: Install JuliaFormatter.jl
30-
run: julia -e 'using Pkg; pkg"add JuliaFormatter"'
30+
run: julia -e 'using Pkg; pkg"add JuliaFormatter@1"'
3131
- name: Setup Python
3232
uses: actions/setup-python@v5
3333
with:

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88
language: fail
99
files: "\\.rej$"
1010
- repo: https://github.com/pre-commit/pre-commit-hooks
11-
rev: v4.6.0
11+
rev: v5.0.0
1212
hooks:
1313
- id: check-json
1414
- id: check-toml
@@ -26,7 +26,7 @@ repos:
2626
- id: check-merge-conflict
2727
args: [--assume-in-merge]
2828
- repo: https://github.com/igorshubovych/markdownlint-cli
29-
rev: v0.41.0
29+
rev: v0.45.0
3030
hooks:
3131
- id: markdownlint-fix
3232
- repo: https://github.com/citation-file-format/cffconvert
@@ -40,10 +40,10 @@ repos:
4040
types_or: [yaml, json]
4141
exclude: ".copier-answers.yml"
4242
- repo: https://github.com/adrienverge/yamllint
43-
rev: v1.35.1
43+
rev: v1.37.1
4444
hooks:
4545
- id: yamllint
4646
- repo: https://github.com/domluna/JuliaFormatter.jl
47-
rev: v1.0.60
47+
rev: v1.0.62
4848
hooks:
4949
- id: julia-formatter

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "GraphDynamicalSystems"
22
uuid = "13529e2e-ed53-56b1-bd6f-420b01fca819"
33
authors = ["Reuben Gardos Reid <[email protected]>"]
4-
version = "0.2.0"
4+
version = "0.0.2"
55

66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"

src/boolean_networks.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module BooleanNetworks
66

77
using DocStringExtensions
88
using MetaGraphsNext: MetaGraph, add_edge!, SimpleDiGraph, nv, labels
9-
using DynamicalSystemsBase: ArbitrarySteppable, current_parameters
9+
using DynamicalSystemsBase: ArbitrarySteppable, current_parameters, initial_state
1010
using SoleLogics:
1111
Formula,
1212
Atom,

src/qualitative_networks.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,9 @@ end
241241
242242
Interpret target functions from a [`QualitativeNetwork`](@ref).
243243
"""
244-
function interpret(e::Union{Expr,Symbol,Int,Atom}, qn::QN)
244+
function interpret(e::Union{Expr,Symbol,Int}, qn::QN)
245245
@match e begin
246246
::Symbol => get_state(qn, e)
247-
::Atom => get_state(qn, Symbol(value(e)))
248247
::Int => e
249248
:($v1 + $v2) => interpret(v1, qn) + interpret(v2, qn)
250249
:($v1 - $v2) => interpret(v1, qn) - interpret(v2, qn)
@@ -257,6 +256,7 @@ function interpret(e::Union{Expr,Symbol,Int,Atom}, qn::QN)
257256
_ => error("Unhandled Expr in `interpret`: $e")
258257
end
259258
end
259+
interpret(e::Atom, qn::QN) = get_state(qn, Symbol(value(e)))
260260

261261
"""
262262
$(TYPEDSIGNATURES)

0 commit comments

Comments
 (0)