Skip to content

Commit

Permalink
warn ShiftedQTree cut off
Browse files Browse the repository at this point in the history
  • Loading branch information
guo-yong-zhi committed Dec 28, 2021
1 parent 0cb202d commit 62db4a1
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 = "Stuffing"
uuid = "4175e07e-e5b7-423e-8796-3ea7f6d48281"
authors = ["guoyongzhi <[email protected]>"]
version = "0.8"
version = "0.8.1"

[deps]
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Expand Down
2 changes: 1 addition & 1 deletion src/qtrees.jl
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function ShiftedQTree(pic::PaddedMat{T}) where T
end
function ShiftedQTree(pic::AbstractMatrix{UInt8}, sz::Integer; default=EMPTY)
@assert isinteger(log2(sz))
@assert sz >= size(pic, 1) && sz >= size(pic, 2)
(sz >= size(pic, 1) && sz >= size(pic, 2)) || (@warn "ShiftedQTree cut off: $(size(pic))>$sz")
ShiftedQTree(PaddedMat(pic, (sz, sz), default=default))
end
function ShiftedQTree(pic::AbstractMatrix{UInt8}; default=EMPTY)
Expand Down

2 comments on commit 62db4a1

@guo-yong-zhi
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 register()

@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/51343

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.8.1 -m "<description of version>" 62db4a12432fd443a07df8d7c9104c172e9dc80e
git push origin v0.8.1

Please sign in to comment.