Skip to content

Commit b02ee43

Browse files
committed
ntree
1 parent 1686d14 commit b02ee43

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

mujoco_warp/_src/io.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -643,10 +643,7 @@ def _check_margin(name, t1, t2, margin):
643643
m.flexedge_J_colind = mjm.flexedge_J_colind.reshape(-1)
644644

645645
# place m on device
646-
# TODO(team): remove ntree once field is added to types.Model
647-
sizes = dict(
648-
{"*": 1, "ntree": mjm.ntree}, **{f.name: getattr(m, f.name) for f in dataclasses.fields(types.Model) if f.type is int}
649-
)
646+
sizes = dict({"*": 1}, **{f.name: getattr(m, f.name) for f in dataclasses.fields(types.Model) if f.type is int})
650647
for f in dataclasses.fields(types.Model):
651648
if _is_array_spec(f.type):
652649
setattr(m, f.name, _create_array(getattr(m, f.name), f.type, sizes))
@@ -932,7 +929,6 @@ def make_data(
932929
sizes["nworld"] = nworld
933930
sizes["naconmax"] = naconmax
934931
sizes["njmax"] = njmax
935-
sizes["ntree"] = mjm.ntree
936932

937933
if njmax_nnz is None:
938934
if is_sparse(mjm):
@@ -1109,7 +1105,6 @@ def put_data(
11091105
sizes["nworld"] = nworld
11101106
sizes["naconmax"] = naconmax
11111107
sizes["njmax"] = njmax
1112-
sizes["ntree"] = mjm.ntree
11131108

11141109
if njmax_nnz is None:
11151110
if is_sparse(mjm):

0 commit comments

Comments
 (0)