Skip to content

Commit eadecff

Browse files
committed
Chore: bump version to 0.3.0, update dependencies, and improve README instructions for conda environment setup.
1 parent 8276ec1 commit eadecff

12 files changed

Lines changed: 259 additions & 180 deletions

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ We recommend using the `conda-forge` channel for managing dependencies. For a fa
1010

1111
1. **Create and activate a conda environment:**
1212
```bash
13-
mamba create -n iltools python=3.10 -c conda-forge
13+
mamba create -n iltools python=3.11 -c conda-forge
1414
conda activate iltools
1515
```
1616

@@ -20,7 +20,10 @@ We recommend using the `conda-forge` channel for managing dependencies. For a fa
2020
```
2121

2222
3. **Install the project:**
23-
From the root of this repository, run:
23+
24+
First, install [```loco-mujoco```](https://github.com/robfiras/loco-mujoco.git).
25+
26+
Then from the root of this repository, run:
2427
```bash
2528
uv pip install -e .
2629
```

examples/export_rb.ipynb

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@
324324
},
325325
{
326326
"cell_type": "code",
327-
"execution_count": 38,
327+
"execution_count": null,
328328
"id": "4220f595",
329329
"metadata": {},
330330
"outputs": [
@@ -372,7 +372,7 @@
372372
}
373373
],
374374
"source": [
375-
"b1[\"observation\"]\n"
375+
"b1[\"observation\"]"
376376
]
377377
},
378378
{
@@ -748,25 +748,15 @@
748748
" else:\n",
749749
" root = zarr.open_group(zp, mode=\"r\")\n",
750750
" print(\"Zarr:\", zp)\n",
751-
" for ds_name in getattr(root, \"group_keys\", lambda: list(root.keys()))():\n",
751+
" for ds_name in root.keys():\n",
752752
" ds_group = root[ds_name]\n",
753-
" try:\n",
754-
" motions = list(ds_group.group_keys())\n",
755-
" except Exception:\n",
756-
" motions = [\n",
757-
" k\n",
758-
" for k in ds_group.keys()\n",
759-
" if isinstance(ds_group[k], zarr.hierarchy.Group)\n",
760-
" ]\n",
753+
" motions = [\n",
754+
" k for k in ds_group.keys() if isinstance(ds_group[k], zarr.Group)\n",
755+
" ]\n",
761756
" print(f\"- Dataset source: {ds_name} (motions: {len(motions)})\")\n",
762757
" for motion in motions:\n",
763758
" mg = ds_group[motion]\n",
764-
" try:\n",
765-
" trajs = list(mg.group_keys())\n",
766-
" except Exception:\n",
767-
" trajs = [\n",
768-
" k for k in mg.keys() if isinstance(mg[k], zarr.hierarchy.Group)\n",
769-
" ]\n",
759+
" trajs = [k for k in mg.keys() if isinstance(mg[k], zarr.Group)]\n",
770760
" lengths = []\n",
771761
" for traj in trajs:\n",
772762
" tg = mg[traj]\n",
@@ -775,11 +765,7 @@
775765
" \"qpos\"\n",
776766
" if \"qpos\" in tg\n",
777767
" else next(\n",
778-
" (\n",
779-
" k\n",
780-
" for k in tg.keys()\n",
781-
" if isinstance(tg[k], zarr.core.Array)\n",
782-
" ),\n",
768+
" (k for k in tg.keys() if isinstance(tg[k], zarr.Array)),\n",
783769
" None,\n",
784770
" )\n",
785771
" )\n",

0 commit comments

Comments
 (0)