Skip to content

Commit

Permalink
Added a bit about context to software GUIDELINES.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
markcoletti committed Mar 12, 2021
1 parent 46d3b32 commit 0e519b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/GUIDELINES.md
Expand Up @@ -85,3 +85,10 @@ can see examples of existing unit tests in `./tests`.

Note that we also have stochastic unit tests, which are important for
evolutionary algorigthms because they're inherently stochastic.

## Use `leap_ec.context` to track state

`leap_ec.context` to track state that needs to persist outside, say, pipeline
operators or function invocations. If you create a new operator or that
function that relies on `leap_ec.context`, please make it the last argument
and have it default to `leap_ec.context.context`.

0 comments on commit 0e519b0

Please sign in to comment.