Skip to content

Commit

Permalink
Use SimpleUnPack (#318)
Browse files Browse the repository at this point in the history
* Use SimpleUnPack

* Apply suggestions from code review

* Use `SimpleUnPack.@pack!`
  • Loading branch information
devmotion authored Mar 10, 2023
1 parent 15ceae5 commit 5eb1dd9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "AdvancedHMC"
uuid = "0bf59076-c3b1-5ca4-86bd-e02cd72cde3d"
version = "0.4.3"
version = "0.4.4"

[deps]
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
Expand All @@ -14,10 +14,10 @@ ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
SimpleUnPack = "ce78b400-467f-4804-87d8-8f486da07d0a"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
StatsFuns = "4c63d2b9-4356-54db-8cca-17b64c39e42c"
UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"

[compat]
AbstractMCMC = "4.2"
Expand All @@ -29,9 +29,9 @@ LogDensityProblemsAD = "1"
ProgressMeter = "1"
Requires = "0.5, 1"
Setfield = "0.7, 0.8, 1"
SimpleUnPack = "1.1"
StatsBase = "0.31, 0.32, 0.33"
StatsFuns = "0.8, 0.9, 1"
UnPack = "1"
julia = "1"

[extras]
Expand Down
4 changes: 2 additions & 2 deletions research/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
SimpleUnPack = "ce78b400-467f-4804-87d8-8f486da07d0a"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
StatsFuns = "4c63d2b9-4356-54db-8cca-17b64c39e42c"
UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"

[compat]
AbstractMCMC = "3.2, 4"
Expand All @@ -22,7 +22,7 @@ InplaceOps = "0.3"
ProgressMeter = "1"
Requires = "0.5, 1"
Setfield = "0.7, 0.8, 1"
SimpleUnPack = "1"
StatsBase = "0.31, 0.32, 0.33"
StatsFuns = "0.8, 0.9, 1"
UnPack = "1"
julia = "1"
2 changes: 1 addition & 1 deletion src/AdvancedHMC.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ using StatsFuns: logaddexp, logsumexp
import Random
using Random: GLOBAL_RNG, AbstractRNG
using ProgressMeter: ProgressMeter
using UnPack: @unpack
using SimpleUnPack: @unpack

using Setfield
import Setfield: ConstructionBase
Expand Down
2 changes: 1 addition & 1 deletion src/adaptation/Adaptation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export Adaptation

using LinearAlgebra: LinearAlgebra
using Statistics: Statistics
using UnPack: @unpack, @pack!
using SimpleUnPack: @unpack, @pack!

using ..AdvancedHMC: DEBUG, AbstractScalarOrVec

Expand Down

2 comments on commit 5eb1dd9

@devmotion
Copy link
Member 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/79358

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.4.4 -m "<description of version>" 5eb1dd97dff38ab8db00b39bdfa3563829c190d9
git push origin v0.4.4

Please sign in to comment.