Skip to content

Commit

Permalink
Fixes Open-Systems-Pharmacology#1082 no observed data does not crash …
Browse files Browse the repository at this point in the history
…qualification time profile
  • Loading branch information
pchelle committed Jul 19, 2023
1 parent 3fe4b28 commit de8223e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/qualification-time-profile.R
Original file line number Diff line number Diff line change
Expand Up @@ -783,14 +783,14 @@ updateQualificationTimeProfilePlotConfiguration <- function(simulatedMetaData =
axesProperties = NULL,
plotConfiguration) {
# Update plot configuration for simulated values
if (!isEmpty(simulatedMetaData)) {
if (!isEmpty(simulatedMetaData$id)) {
sortedSimulatedMetaData <- order(simulatedMetaData$id)
plotConfiguration$lines$color <- simulatedMetaData$color[sortedSimulatedMetaData]
plotConfiguration$lines$linetype <- simulatedMetaData$linetype[sortedSimulatedMetaData]
plotConfiguration$lines$size <- simulatedMetaData$size[sortedSimulatedMetaData]
}
# Update plot configuration for observed values
if (!isEmpty(observedMetaData)) {
if (!isEmpty(observedMetaData$id)) {
sortedObservedMetaData <- order(observedMetaData$id)
# offset of simulated data colors
plotConfiguration$points$color <- c(
Expand Down

0 comments on commit de8223e

Please sign in to comment.