Skip to content

Commit

Permalink
Fixed requirements, updated imports
Browse files Browse the repository at this point in the history
  • Loading branch information
nandantumu committed Aug 23, 2023
1 parent 6fbd313 commit 1a2a5c9
Show file tree
Hide file tree
Showing 10 changed files with 359 additions and 333 deletions.
4 changes: 2 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ scipy = ">=1.7.3"
pyglet = "<1.5"
pyyaml = ">=5.3.1"
yamldataclassconfig = "*"
matplotlib = "*"
requests = "*"
pyopengl = "*"
numba = "*"
f110-gym = {file = "."}
shapely = "*"
opencv-python = "*"
f110-gym = {file = "."}

[dev-packages]
flake8 = "*"
Expand All @@ -26,6 +25,7 @@ ipykernel = "*"
pytest = "*"
isort = "*"
autoflake = "*"
matplotlib = "*"

[requires]
python_version = "3.10"
Expand Down
594 changes: 338 additions & 256 deletions Pipfile.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions gym/f110_gym/envs/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .f110_env import F110Env
2 changes: 1 addition & 1 deletion gym/f110_gym/envs/base_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
Author: Hongrui Zheng
"""
import numpy as np
from f110_gym.envs import DynamicModel
from f110_gym.envs.dynamic_models import DynamicModel
from f110_gym.envs.action import CarAction
from f110_gym.envs.collision_models import collision_multiple, get_vertices
from f110_gym.envs.integrator import EulerIntegrator, IntegratorType
Expand Down
2 changes: 1 addition & 1 deletion gym/f110_gym/envs/f110_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import numpy as np
# gl
import pyglet
from f110_gym.envs import IntegratorType
from f110_gym.envs.integrator import IntegratorType
from f110_gym.envs.action import (CarActionEnum,
from_single_to_multi_action_space)
# base classes
Expand Down
70 changes: 0 additions & 70 deletions requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[pytest]
[tool:pytest]
minversion = 6.0
addopts = -ra -q
testpaths =
Expand Down
13 changes: 13 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,18 @@
"pyopengl",
"yamldataclassconfig",
"requests",
"shapely",
"opencv-python",
],
extras_require={
'dev': [
'pytest',
'flake8',
'black',
'ipykernel',
'isort',
'autoflake',
'matplotlib'
]
}
)
2 changes: 1 addition & 1 deletion tests/test_dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import unittest

import numpy as np
from f110_gym.envs import vehicle_dynamics_ks, vehicle_dynamics_st
from f110_gym.envs.dynamic_models import vehicle_dynamics_ks, vehicle_dynamics_st


def func_KS(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_scan_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import unittest

import numpy as np
from f110_gym.envs import ScanSimulator2D
from f110_gym.envs.laser_models import ScanSimulator2D
from numba import njit
from scipy.ndimage import distance_transform_edt as edt

Expand Down

0 comments on commit 1a2a5c9

Please sign in to comment.