Skip to content

Commit 7df01a9

Browse files
authored
Import torch after app launcher (#5694)
# Description Import torch numpy after AppLauncher Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. Fixes # (issue) <!-- As a practice, it is recommended to open an issue to have discussions on the proposed pull request. This makes it easier for the community to keep track of what is being developed or added, and if a given feature is demanded by more than one party. --> ## Type of change <!-- As you go through the list, delete the ones that are not applicable. --> - Bug fix (non-breaking change which fixes an issue) - New feature (non-breaking change which adds functionality) - Breaking change (existing functionality will not work without user modification) - Documentation update ## Screenshots Please attach before and after screenshots of the change if applicable. <!-- Example: | Before | After | | ------ | ----- | | _gif/png before_ | _gif/png after_ | To upload images to a PR -- simply drag and drop an image while in edit mode and it should upload the image directly. You can then paste that source into the above before/after sections. --> ## Checklist - [ ] I have read and understood the [contribution guidelines](https://isaac-sim.github.io/IsaacLab/main/source/refs/contributing.html) - [ ] I have run the [`pre-commit` checks](https://pre-commit.com/) with `./isaaclab.sh --format` - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have updated the changelog and the corresponding version in the extension's `config/extension.toml` file - [ ] I have added my name to the `CONTRIBUTORS.md` or my name already exists there <!-- As you go through the checklist above, you can mark something as done by putting an x character in it For example, - [x] I have done this task - [ ] I have not done this task -->
1 parent 37862a1 commit 7df01a9

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

source/isaaclab/changelog.d/pbarejko-fix-torch-imports.skip

Whitespace-only changes.

source/isaaclab/test/sensors/test_ray_caster.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55

66
from __future__ import annotations
77

8-
import numpy as np
9-
import pytest
10-
import torch
11-
import trimesh
12-
138
from isaaclab.app import AppLauncher
149

1510
# launch omniverse app
1611
simulation_app = AppLauncher(headless=True, enable_cameras=True).app
1712

13+
import numpy as np
14+
import pytest
15+
import torch
16+
import trimesh
17+
1818
# Import after app launch
1919
import warp as wp
2020

source/isaaclab/test/sensors/test_ray_caster_patterns.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55

66
from __future__ import annotations
77

8-
import math
9-
10-
import pytest
11-
import torch
12-
138
from isaaclab.app import AppLauncher
149

1510
# launch omniverse app
1611
simulation_app = AppLauncher(headless=True, enable_cameras=False).app
1712

1813
# Import after app launch
14+
import math
15+
16+
import pytest
17+
import torch
18+
1919
from isaaclab.sensors.ray_caster.patterns import patterns, patterns_cfg
2020

2121

0 commit comments

Comments
 (0)