Skip to content

Commit

Permalink
Add overload of length for Parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
rikardn committed Oct 16, 2024
1 parent 91872cb commit e2b1a85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ S3method(repr::repr_latex,pharmpy.model.distributions.symbolic.NormalDistributio
S3method(repr::repr_latex,pharmpy.model.random_variables.RandomVariables)
S3method(repr::repr_latex,pharmpy.model.statements.Assignment)
S3method(repr::repr_latex,pharmpy.modeling.odes.ODEDisplayer)
S3method(length,pharmpy.model.parameters.Parameters)
export(add_admid)
export(add_allometry)
export(add_bioavailability)
Expand Down
4 changes: 4 additions & 0 deletions R/overloads.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#' @exportS3Method length pharmpy.model.parameters.Parameters
length.pharmpy.model.parameters.Parameters <- function(obj, ...) {
reticulate::py_len(obj)
}

0 comments on commit e2b1a85

Please sign in to comment.