Skip to content

Commit 710e2fb

Browse files
bheijdenjelledouwe
andauthored
fix: graph refactor (#55)
* fix: refactor graph * chore: revert sb3 dependency * chore: update lock * chore: fix backend variable name bug Co-authored-by: Jelle <j.d.luijkx@tudelft.nl>
1 parent b0c47d3 commit 710e2fb

File tree

5 files changed

+108
-59
lines changed

5 files changed

+108
-59
lines changed

eagerx_tutorials/pendulum/engine_nodes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ def make(
3737
spec.config.idx = idx
3838
return spec
3939

40-
def initialize(self, spec, object_spec, simulator):
41-
self.obj_name = object_spec.config.name
40+
def initialize(self, spec, simulator):
4241
self.idx = spec.config.idx
4342

4443
@register.states()

eagerx_tutorials/pendulum/engine_states.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import eagerx
2-
from eagerx.core.specs import EngineStateSpec, ObjectSpec
2+
from eagerx.core.specs import EngineStateSpec
33
from typing import Any
44

55

@@ -8,7 +8,7 @@ class DummyState(eagerx.EngineState):
88
def make(cls) -> EngineStateSpec:
99
return cls.get_specification()
1010

11-
def initialize(self, spec: EngineStateSpec, object_spec: ObjectSpec, simulator: Any):
11+
def initialize(self, spec: EngineStateSpec, simulator: Any):
1212
pass
1313

1414
def reset(self, state: Any):
@@ -22,7 +22,7 @@ def make(cls, attribute: str) -> EngineStateSpec:
2222
spec.config.attribute = attribute
2323
return spec
2424

25-
def initialize(self, spec: EngineStateSpec, object_spec: ObjectSpec, simulator: Any):
25+
def initialize(self, spec: EngineStateSpec, simulator: Any):
2626
self.attribute = spec.config.attribute
2727
self.simulator = simulator
2828

poetry.lock

Lines changed: 95 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ include = ["scripts"]
1111

1212
[tool.poetry.dependencies]
1313
python = "^3.7"
14-
eagerx = "^0.1.30"
15-
eagerx-ode = "^0.1.25"
16-
eagerx-pybullet = "^0.1.9"
17-
stable-baselines3 = "^1.2"
14+
eagerx = "^0.1.32"
15+
eagerx-ode = "^0.1.26"
16+
eagerx-pybullet = "^0.1.10"
17+
stable-baselines3 = "^1.2.0"
1818
jupyterlab = "^3.3.4"
1919
nbconvert = "^6.5.0"
2020
PyVirtualDisplay = "^3.0"

0 commit comments

Comments
 (0)