Skip to content

Commit

Permalink
Merge pull request #36 from oxinabox/ox/noround
Browse files Browse the repository at this point in the history
use > rather than round(bool)
  • Loading branch information
oxinabox authored Jun 22, 2023
2 parents dd8388d + c1c63db commit 47c1e85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LayeredLayouts"
uuid = "f4a74d36-062a-4d48-97cd-1356bad1de4e"
authors = ["Frames White <oxinabox@ucc.asn.au> and contributors"]
version = "0.2.8"
version = "0.2.9"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
2 changes: 1 addition & 1 deletion src/zarate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ end
function order_layers!(layer2nodes, is_before)
# Cunning trick: we need to go from the `before` matrix to an actual order list
# we can do this by sorting when having `lessthan` read from the `before` matrix
is_before_func(n1, n2) = round(Bool, value(is_before[n1=>n2]))::Bool
is_before_func(n1, n2) = value(is_before[n1=>n2]) > 0.5
for layer in layer2nodes
sort!(layer; lt=is_before_func)
end
Expand Down

2 comments on commit 47c1e85

@oxinabox
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/86052

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.9 -m "<description of version>" 47c1e85daf8e03fcf231992abc57aa84e733fb94
git push origin v0.2.9

Please sign in to comment.