Skip to content

Commit

Permalink
format with correct black version.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianHirt committed Feb 22, 2024
1 parent 7f18e89 commit af1eec1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
6 changes: 3 additions & 3 deletions container/perf-measurement/container_perf_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def build_jupedsim():

def run_test(test, args, build_dir, result_dir):
test_env = os.environ.copy()
test_env[
"PYTHONPATH"
] = f"/src/python_modules/jupedsim:/src/python_modules/jupedsim_visualizer:/build/lib"
test_env["PYTHONPATH"] = (
f"/src/python_modules/jupedsim:/src/python_modules/jupedsim_visualizer:/build/lib"
)

perf_data_file_name = f"{test}.perf.data"
perf_file_name = f"{test}.perf"
Expand Down
30 changes: 18 additions & 12 deletions python_modules/jupedsim/jupedsim/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,19 @@ class Simulation:
def __init__(
self,
*,
model: CollisionFreeSpeedModel
| GeneralizedCentrifugalForceModel
| SocialForceModel,
geometry: str
| shapely.GeometryCollection
| shapely.Polygon
| shapely.MultiPolygon
| shapely.MultiPoint
| list[tuple[float, float]],
model: (
CollisionFreeSpeedModel
| GeneralizedCentrifugalForceModel
| SocialForceModel
),
geometry: (
str
| shapely.GeometryCollection
| shapely.Polygon
| shapely.MultiPolygon
| shapely.MultiPoint
| list[tuple[float, float]]
),
dt: float = 0.01,
trajectory_writer: TrajectoryWriter | None = None,
**kwargs: Any,
Expand Down Expand Up @@ -213,9 +217,11 @@ def add_journey(self, journey: JourneyDescription) -> int:

def add_agent(
self,
parameters: GeneralizedCentrifugalForceModelAgentParameters
| CollisionFreeSpeedModelAgentParameters
| SocialForceModelAgentParameters,
parameters: (
GeneralizedCentrifugalForceModelAgentParameters
| CollisionFreeSpeedModelAgentParameters
| SocialForceModelAgentParameters
),
) -> int:
return self._obj.add_agent(parameters.as_native())

Expand Down

0 comments on commit af1eec1

Please sign in to comment.