Skip to content

Commit

Permalink
fix #215
Browse files Browse the repository at this point in the history
  • Loading branch information
achubaty committed Aug 11, 2015
1 parent eddc318 commit 329b6b7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Description: Easily implement a variety of simulation models, with a focus on
installed with `install.packages("fastshp", repos="http://rforge.net",
type="source")`.
URL: https://github.com/PredictiveEcology/SpaDES
Version: 1.0.1.9000
Date: 2015-08-10
Version: 1.0.1.9001
Date: 2015-08-11
Authors@R: c(
person(c("Alex", "M"), "Chubaty", email="[email protected]",
role=c("aut", "cre")),
Expand Down
6 changes: 6 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Known issues: https://github.com/PredictiveEcology/SpaDES/issues

version 1.0.2
=============
* fix bug in `.parseModule` (#215)
* improve documentation
* bug fixes

version 1.0.1
=============
* no longer `attach` the simulation environment (#212)
Expand Down
6 changes: 5 additions & 1 deletion R/simulation.R
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ setMethod(
}
}

modules(sim) <- append_attr(modules, all_children)[-parent_ids] %>%
modules(sim) <- if (length(parent_ids)) {
append_attr(modules, all_children)[-parent_ids]
} else {
append_attr(modules, all_children)
} %>%
unique

return(sim)
Expand Down

0 comments on commit 329b6b7

Please sign in to comment.