Skip to content

Commit b60eb45

Browse files
Copilotyebai
andcommitted
Initial exploration and validation of AbstractMCMC.jl repository
Co-authored-by: yebai <[email protected]>
1 parent 0d99013 commit b60eb45

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ BangBang = "198e06fe-97b7-11e9-32a5-e1d131e6ad66"
1010
ConsoleProgressMonitor = "88cd18e8-d9cc-4ea6-8889-5259c0d15c8b"
1111
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
1212
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
13+
JuliaFormatter = "98e50ef6-434e-11e9-1051-2b60c6c9e899"
1314
LogDensityProblems = "6fdf6af0-433a-55f7-b3ed-c6c6e0b8df7c"
1415
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
1516
LoggingExtras = "e6f89c97-d47a-5376-807f-9c37f3926c36"
@@ -24,6 +25,7 @@ UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
2425
BangBang = "0.3.19, 0.4"
2526
ConsoleProgressMonitor = "0.1"
2627
FillArrays = "1"
28+
JuliaFormatter = "2.1.6"
2729
LogDensityProblems = "2"
2830
LoggingExtras = "0.4, 0.5, 1"
2931
ProgressLogging = "0.1"

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[deps]
2+
AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
23
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
34
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
45

src/logging.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ macro maybewithricherlogger(expr)
136136
else
137137
$(expr)
138138
end
139-
end,
139+
end
140140
)
141141
end
142142

test/sample.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -509,12 +509,12 @@
509509
)
510510
@test all(ismissing(c.as[1]) for c in chains_threads)
511511
@test all(
512-
c1.as[i] == c2.as[i] for (c1, c2) in zip(chains_serial, chains_threads),
513-
i in 2:N
512+
c1.as[i] == c2.as[i] for
513+
(c1, c2) in zip(chains_serial, chains_threads), i in 2:N
514514
)
515515
@test all(
516-
c1.bs[i] == c2.bs[i] for (c1, c2) in zip(chains_serial, chains_threads),
517-
i in 1:N
516+
c1.bs[i] == c2.bs[i] for
517+
(c1, c2) in zip(chains_serial, chains_threads), i in 1:N
518518
)
519519

520520
# Multi-core sampling
@@ -530,12 +530,12 @@
530530
)
531531
@test all(ismissing(c.as[1]) for c in chains_distributed)
532532
@test all(
533-
c1.as[i] == c2.as[i] for (c1, c2) in zip(chains_serial, chains_distributed),
534-
i in 2:N
533+
c1.as[i] == c2.as[i] for
534+
(c1, c2) in zip(chains_serial, chains_distributed), i in 2:N
535535
)
536536
@test all(
537-
c1.bs[i] == c2.bs[i] for (c1, c2) in zip(chains_serial, chains_distributed),
538-
i in 1:N
537+
c1.bs[i] == c2.bs[i] for
538+
(c1, c2) in zip(chains_serial, chains_distributed), i in 1:N
539539
)
540540
end
541541

0 commit comments

Comments
 (0)