Skip to content

Commit f771596

Browse files
authored
[MISC] Migrate from 'taichi' to 'gstaichi'. (#1550)
1 parent e064dbc commit f771596

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+120
-115
lines changed

examples/smoke.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from pathlib import Path
33

44
import numpy as np
5-
import taichi as ti
5+
import gstaichi as ti
66
import cv2
77

88
import genesis as gs

genesis/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
from platform import system
99
from contextlib import redirect_stdout
1010

11-
# Import taichi while collecting its output without printing directly
11+
# Import gstaichi while collecting its output without printing directly
1212
_ti_outputs = io.StringIO()
1313

1414
os.environ.setdefault("TI_ENABLE_PYBUF", "0" if sys.stdout is sys.__stdout__ else "1")
1515

1616
with redirect_stdout(_ti_outputs):
17-
import taichi as ti
17+
import gstaichi as ti
1818

1919
try:
2020
import torch
@@ -211,7 +211,7 @@ def init(
211211
if (backend == gs_backend.metal) and (os.environ.get("TI_ENABLE_METAL") == "0"):
212212
ti_arch = TI_ARCH[platform][gs_backend.cpu]
213213

214-
# init taichi
214+
# init gstaichi
215215
with redirect_stdout(_ti_outputs):
216216
ti.init(
217217
arch=ti_arch,
@@ -230,7 +230,7 @@ def init(
230230
**taichi_kwargs,
231231
)
232232

233-
# Make sure that taichi arch is matching requirement
233+
# Make sure that gstaichi arch is matching requirement
234234
ti_runtime = ti.lang.impl.get_runtime()
235235
ti_arch = ti_runtime.prog.config().arch
236236
if backend != gs.cpu and ti_arch in (ti._lib.core.Arch.arm64, ti._lib.core.Arch.x64):
@@ -297,7 +297,7 @@ def destroy():
297297
del scene
298298
global_scene_list.clear()
299299

300-
# Reset taichi
300+
# Reset gstaichi
301301
ti.reset()
302302

303303
# Delete logger

genesis/_main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
import numpy as np
1111
import torch
12-
from taichi._lib import core as _ti_core
13-
from taichi.lang import impl
12+
from gstaichi._lib import core as _ti_core
13+
from gstaichi.lang import impl
1414

1515
import genesis as gs
1616

@@ -98,7 +98,7 @@ def get_motors_info(robot):
9898

9999

100100
def clean():
101-
print("Cleaned up all genesis and taichi cache files...")
101+
print("Cleaned up all genesis and gstaichi cache files...")
102102
gs.utils.misc.clean_cache_files()
103103
_ti_core.clean_offline_cache_files(os.path.abspath(impl.default_cfg().offline_cache_file_path))
104104

@@ -219,7 +219,7 @@ def main():
219219
parser = argparse.ArgumentParser(description="Genesis CLI")
220220
subparsers = parser.add_subparsers(dest="command")
221221

222-
parser_clean = subparsers.add_parser("clean", help="Clean all the files cached by genesis and taichi")
222+
parser_clean = subparsers.add_parser("clean", help="Clean all the files cached by genesis and gstaichi")
223223

224224
parser_view = subparsers.add_parser("view", help="Visualize a given asset (mesh/URDF/MJCF)")
225225
parser_view.add_argument("filename", type=str, help="File to visualize")

genesis/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import enum
22

3-
import taichi as ti
3+
import gstaichi as ti
44

55
# dynamic loading
66
ACTIVE = 1

genesis/engine/boundaries/boundaries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import copy
22

33
import numpy as np
4-
import taichi as ti
4+
import gstaichi as ti
55

66
import genesis as gs
77
from genesis.utils.misc import *

genesis/engine/bvh.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import genesis as gs
2-
import taichi as ti
2+
import gstaichi as ti
33
from genesis.repr_base import RBC
44
import numpy as np
55

genesis/engine/couplers/legacy_coupler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import TYPE_CHECKING
22

33
import numpy as np
4-
import taichi as ti
4+
import gstaichi as ti
55

66
import genesis as gs
77
from genesis.options.solvers import LegacyCouplerOptions

genesis/engine/couplers/sap_coupler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import math
33

44
import numpy as np
5-
import taichi as ti
5+
import gstaichi as ti
66

77
import genesis as gs
88
from genesis.options.solvers import SAPCouplerOptions

genesis/engine/entities/avatar_entity/avatar_entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import numpy as np
22
import numpy.typing as npt
33

4-
import taichi as ti
4+
import gstaichi as ti
55

66
from ..rigid_entity import RigidEntity
77
from .avatar_joint import AvatarJoint

genesis/engine/entities/avatar_entity/avatar_geom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import taichi as ti
1+
import gstaichi as ti
22

33
from ..rigid_entity import RigidGeom, RigidVisGeom
44

0 commit comments

Comments
 (0)