Skip to content

Commit

Permalink
Ensure units of simulation match those of fit input
Browse files Browse the repository at this point in the history
  • Loading branch information
iagomosqueira committed Dec 5, 2024
1 parent 1762359 commit 4b51119
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/simulate-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ setMethod("simulate", signature(object = "a4aFitSA"),
attr(out@index[[i]], "range") <- attr(object@index[[i]], "range")
}
}

units(out) <- units(object)
out
})

Expand Down

0 comments on commit 4b51119

Please sign in to comment.