Skip to content

Commit

Permalink
fixed error in RMG
Browse files Browse the repository at this point in the history
  • Loading branch information
smitdave committed Mar 15, 2024
1 parent da859bb commit 84fe891
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 94 deletions.
5 changes: 3 additions & 2 deletions R/MYZmod-RMG.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ MBionomics.RMG <- function(t, y, pars, s) {
pars$MYZpar[[s]]$f <- f0
pars$MYZpar[[s]]$q <- q0
pars$MYZpar[[s]]$g <- g0
pars$MYZpar[[s]]$phi <- 1/phi0
pars$MYZpar[[s]]$phi <- phi0
pars$MYZpar[[s]]$sigma <- sigma0
pars$MYZpar[[s]]$nu <- nu0

Expand Down Expand Up @@ -111,7 +111,7 @@ setup_MYZpar.RMG = function(MYZname, pars, s, MYZopts=list(), EIPmod, calK){
#' @return a [list]
#' @export
make_MYZpar_RMG = function(nPatches, MYZopts=list(), EIPmod, calK,
g=1/12, sigma=1/8, f=0.3, q=0.95,
g=1/12, sigma=1/8, f=0.5, q=0.95,
nu=1, eggsPerBatch=60){

stopifnot(is.matrix(calK))
Expand All @@ -131,6 +131,7 @@ make_MYZpar_RMG = function(nPatches, MYZopts=list(), EIPmod, calK,
MYZpar$q <- checkIt(q, nPatches)
MYZpar$nu <- checkIt(nu, nPatches)
MYZpar$eggsPerBatch <- eggsPerBatch
MYZpar$phi <- 1/MYZpar$eip

# Store as baseline values
MYZpar$g0 <- MYZpar$g
Expand Down
2 changes: 1 addition & 1 deletion man/make_MYZpar_RMG.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions vignettes/MYZmod-RMG.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ xde_plot_M(model)
xde_plot_YZ(model, add_axes = F)
xde_plot_YZ_fracs(model)

## -----------------------------------------------------------------------------
xde_plot_YZ_fracs(model)

4 changes: 4 additions & 0 deletions vignettes/MYZmod-RMG.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,9 @@ xde_plot_YZ(model, add_axes = F)
xde_plot_YZ_fracs(model)
```

```{r}
xde_plot_YZ_fracs(model)
```



8 changes: 5 additions & 3 deletions vignettes/MYZmod-RMG.html

Large diffs are not rendered by default.

110 changes: 22 additions & 88 deletions vignettes/Scaling.html

Large diffs are not rendered by default.

0 comments on commit 84fe891

Please sign in to comment.