Skip to content

Commit

Permalink
Add Academy.AutomaticSteppingEnabled to migration (#3666)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Elion authored and vincentpierre committed Mar 26, 2020
1 parent 4bb1291 commit 8c214d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Migrating.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ The versions can be found in
* The interface for SideChannels was changed:
* In C#, `OnMessageReceived` now takes a `IncomingMessage` argument, and `QueueMessageToSend` takes an `OutgoingMessage` argument.
* In python, `on_message_received` now takes a `IncomingMessage` argument, and `queue_message_to_send` takes an `OutgoingMessage` argument.
* Automatic stepping for Academy is now controlled from the AutomaticSteppingEnabled property.

### Steps to Migrate
* Add the `using MLAgents.Sensors;` in addition to `using MLAgents;` on top of your Agent's script.
Expand All @@ -50,6 +51,7 @@ The versions can be found in
* `GiveModel()` to `SetModel()`
* Replace `IFloatProperties` variables with `FloatPropertiesChannel` variables.
* If you implemented custom `SideChannels`, update the signatures of your methods, and add your data to the `OutgoingMessage` or read it from the `IncomingMessage`.
* Replace calls to Academy.EnableAutomaticStepping()/DisableAutomaticStepping() with Academy.AutomaticSteppingEnabled = true/false.

## Migrating from 0.13 to 0.14

Expand Down

0 comments on commit 8c214d8

Please sign in to comment.