-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add getAllStateVariablesPaths #526
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #526 +/- ##
===========================================
+ Coverage 88.52% 88.56% +0.03%
===========================================
Files 72 72
Lines 1438 1443 +5
===========================================
+ Hits 1273 1278 +5
Misses 165 165
Continue to review full report at Codecov.
|
R/utilities-simulation.R
Outdated
#' @return A list of paths | ||
#' @export | ||
getAllStateVariablesPaths <- function(simulation) { | ||
validateIsOfType(simulation, type = "Simulation") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can pass a ref to the R6 class directly here (e..g validateIsOfType(simulation, Simulation) which removes the use of "magic" string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
R/utilities-simulation.R
Outdated
#' @export | ||
getAllStateVariablesPaths <- function(simulation) { | ||
validateIsOfType(simulation, type = "Simulation") | ||
allMoleculesPaths <- getAllEntityPathsIn(container = simulation, entityType = Molecule) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getAllMoleculePathsIn instead. Since we have a convenience method for this, why not use it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
No description provided.