Skip to content

Commit

Permalink
Update ParamSet.R
Browse files Browse the repository at this point in the history
  • Loading branch information
mb706 authored Jun 19, 2024
1 parent f686048 commit e8b1ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ParamSet.R
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ ParamSet = R6Class("ParamSet",
}
if (length(tags) == 1 && is.null(any_tags) && is.null(class)) {
# very typical case: only 'tags' is given.
return(private$.tags[tags, id])
return(private$.tags$id[match(tags, private$.tags$tag)])
}
ptbl = if (is.null(class)) private$.params else private$.params[cls %in% class, .(id)]
if (is.null(tags) && is.null(any_tags)) {
Expand Down

0 comments on commit e8b1ef1

Please sign in to comment.