Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong implementation of distributions #106

Merged
merged 6 commits into from
Sep 25, 2023
Merged

Conversation

sunxd3
Copy link
Member

@sunxd3 sunxd3 commented Sep 25, 2023

No description provided.

Comment on lines 47 to 48
param_name_leaves = collect(Iterators.flatten(
[
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
param_name_leaves = collect(Iterators.flatten(
[
param_name_leaves = collect(
Iterators.flatten([

Comment on lines 51 to 54
],
))
generated_varname_leaves = collect(Iterators.flatten(
[
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
],
))
generated_varname_leaves = collect(Iterators.flatten(
[
],),
)
generated_varname_leaves = collect(
Iterators.flatten([

Comment on lines 57 to 58
],
))
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
],
))
],),
)

flattened_param_vals = [vcat(p...) for p in param_vals]
flattened_generated_quantities = [vcat(gq...) for gq in generated_quantities]
flattened_param_vals = [collect(Iterators.flatten(p)) for p in param_vals]
flattened_generated_quantities = [collect(Iterators.flatten(gq)) for gq in generated_quantities]
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
flattened_generated_quantities = [collect(Iterators.flatten(gq)) for gq in generated_quantities]
flattened_generated_quantities = [
collect(Iterators.flatten(gq)) for gq in generated_quantities
]

),
)
end

Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change

@codecov
Copy link

codecov bot commented Sep 25, 2023

Codecov Report

Patch coverage: 33.33% and project coverage change: -0.34% ⚠️

Comparison is base (adfa8ab) 71.79% compared to head (8d7adba) 71.45%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #106      +/-   ##
==========================================
- Coverage   71.79%   71.45%   -0.34%     
==========================================
  Files          16       16              
  Lines        1659     1671      +12     
==========================================
+ Hits         1191     1194       +3     
- Misses        468      477       +9     
Files Changed Coverage Δ
ext/JuliaBUGSAdvancedHMCExt.jl 0.00% <0.00%> (ø)
src/model.jl 78.71% <0.00%> (-1.19%) ⬇️
src/BUGSPrimitives/distributions.jl 35.51% <47.36%> (-0.21%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sunxd3 sunxd3 marked this pull request as ready for review September 25, 2023 14:30
@github-actions
Copy link
Contributor

Pull Request Test Coverage Report for Build 6300765515

  • 9 of 27 (33.33%) changed or added relevant lines in 3 files are covered.
  • 4 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.3%) to 71.454%

Changes Missing Coverage Covered Lines Changed/Added Lines %
ext/JuliaBUGSAdvancedHMCExt.jl 0 4 0.0%
src/model.jl 0 4 0.0%
src/BUGSPrimitives/distributions.jl 9 19 47.37%
Files with Coverage Reduction New Missed Lines %
ext/JuliaBUGSAdvancedHMCExt.jl 1 0.0%
src/BUGSPrimitives/distributions.jl 3 35.51%
Totals Coverage Status
Change from base Build 6261090149: -0.3%
Covered Lines: 1194
Relevant Lines: 1671

💛 - Coveralls

@sunxd3 sunxd3 merged commit 0c51ffa into master Sep 25, 2023
11 of 13 checks passed
@sunxd3 sunxd3 deleted the sunxd/fix_dist_mistakes branch September 25, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant