-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrap byton mbindings to C-API again in Python
We want to provide the best possible user experience when using jupedsim. Therfore we want to provide all docstrings from the python layer itself. Further this allows us to extend the Simulation type for example with more custom functionality only present in python, e.g. builtin serialisation or working directly with shaply types. Co-authored-by: schroedtert <[email protected]> Co-authored-by: Christian Hirt <[email protected]>
- Loading branch information
1 parent
9eead5b
commit d50778c
Showing
25 changed files
with
875 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,88 @@ | ||
# Copyright © 2012-2023 Forschungszentrum Jülich GmbH | ||
# SPDX-License-Identifier: LGPL-3.0-or-later | ||
try: | ||
from .py_jupedsim import * | ||
except ModuleNotFoundError: | ||
from py_jupedsim import * | ||
from jupedsim.distributions import ( | ||
AgentNumberError, | ||
IncorrectParameterError, | ||
NegativeValueError, | ||
OverlappingCirclesError, | ||
distribute_by_density, | ||
distribute_by_number, | ||
distribute_by_percentage, | ||
distribute_in_circles_by_density, | ||
distribute_in_circles_by_number, | ||
distribute_till_full, | ||
) | ||
from jupedsim.native.agent import Agent | ||
from jupedsim.native.geometry import Geometry, GeometryBuilder | ||
from jupedsim.native.journey import JourneyDescription | ||
from jupedsim.native.library import ( | ||
BuildInfo, | ||
get_build_info, | ||
set_debug_callback, | ||
set_error_callback, | ||
set_info_callback, | ||
set_warning_callback, | ||
) | ||
from jupedsim.native.models import ( | ||
GCFMModelAgentParameters, | ||
GCFMModelBuilder, | ||
GeneralizedCentrifugalForceModelState, | ||
VelocityModelAgentParameters, | ||
VelocityModelBuilder, | ||
VelocityModelState, | ||
) | ||
from jupedsim.native.routing import RoutingEngine | ||
from jupedsim.native.simulation import Simulation | ||
from jupedsim.native.stages import ( | ||
ExitProxy, | ||
NotifiableQueueProxy, | ||
WaitingSetProxy, | ||
WaitingSetState, | ||
WaypointProxy, | ||
) | ||
from jupedsim.native.tracing import Trace | ||
from jupedsim.recording import Recording, RecordingAgent, RecordingFrame | ||
from jupedsim.trajectory_writer_sqlite import SqliteTrajectoryWriter | ||
from jupedsim.util import build_jps_geometry | ||
|
||
import jupedsim.aabb | ||
import jupedsim.distributions | ||
import jupedsim.grid | ||
import jupedsim.serialization | ||
import jupedsim.trajectory_writer_sqlite | ||
import jupedsim.util | ||
__all__ = [ | ||
"AgentNumberError", | ||
"IncorrectParameterError", | ||
"NegativeValueError", | ||
"OverlappingCirclesError", | ||
"distribute_by_density", | ||
"distribute_by_number", | ||
"distribute_by_percentage", | ||
"distribute_in_circles_by_density", | ||
"distribute_in_circles_by_number", | ||
"distribute_till_full", | ||
"Agent", | ||
"Geometry", | ||
"GeometryBuilder", | ||
"JourneyDescription", | ||
"BuildInfo", | ||
"get_build_info", | ||
"set_debug_callback", | ||
"set_error_callback", | ||
"set_info_callback", | ||
"set_warning_callback", | ||
"GCFMModelAgentParameters", | ||
"GCFMModelBuilder", | ||
"GeneralizedCentrifugalForceModelState", | ||
"VelocityModelAgentParameters", | ||
"VelocityModelBuilder", | ||
"VelocityModelState", | ||
"RoutingEngine", | ||
"Simulation", | ||
"ExitProxy", | ||
"NotifiableQueueProxy", | ||
"WaitingSetProxy", | ||
"WaitingSetState", | ||
"WaypointProxy", | ||
"Trace", | ||
"Recording", | ||
"RecordingAgent", | ||
"RecordingFrame", | ||
"SqliteTrajectoryWriter", | ||
"build_jps_geometry", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.