Skip to content

Commit

Permalink
Merge pull request #283 from alan-turing-institute/fix_vd_extract_order
Browse files Browse the repository at this point in the history
fix vd extract order bug
  • Loading branch information
RaphaelS1 authored Feb 10, 2023
2 parents 6459958 + cb948ea commit c727639
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: distr6
Title: The Complete R6 Probability Distributions Interface
Version: 1.6.12
Version: 1.6.13
Authors@R:
c(person(given = "Raphael",
family = "Sonabend",
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# distr6 1.6.13

* Fix reordering bug when extracting vector distributions

# distr6 1.6.12

* Fix minor bug causing decorators not to be carried forward when using `rep`
Expand Down
2 changes: 1 addition & 1 deletion R/Wrapper_VectorDistribution.R
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ or `distlist` should be used.")
return(dist)
} else {
id <- as.character(unlist(vecdist$modelTable[i, 2]))
pars <- vecdist$parameters()$values
pars <- private(vecdist$parameters())$.value
pars <- pars[grepl(paste0("^", id, "__", collapse = "|"), names(pars))]

return(VectorDistribution$new(
Expand Down

0 comments on commit c727639

Please sign in to comment.