|
22 | 22 | _dtalitemm_dll = os.path.join(os.path.dirname(__file__), 'bin/DTALiteMM_x86.dylib') |
23 | 23 | else: |
24 | 24 | _dtalite_dll = os.path.join(os.path.dirname(__file__), 'bin/DTALite_arm.dylib') |
25 | | - _dtalite_dll = os.path.join(os.path.dirname(__file__), 'bin/DTALiteMM_arm.dylib') |
| 25 | + _dtalitemm_dll = os.path.join(os.path.dirname(__file__), 'bin/DTALiteMM_arm.dylib') |
26 | 26 | else: |
27 | 27 | raise Exception('Please build the shared library compatible to your OS\ |
28 | 28 | using source files') |
29 | 29 |
|
30 | | -_dtalitemm_engine = ctypes.cdll.LoadLibrary(_dtalitemm_dll) |
31 | 30 | _dtalite_engine = ctypes.cdll.LoadLibrary(_dtalite_dll) |
| 31 | +_dtalitemm_engine = ctypes.cdll.LoadLibrary(_dtalitemm_dll) |
32 | 32 |
|
33 | 33 |
|
34 | 34 | _dtalite_engine.network_assignment.argtypes = [ctypes.c_int, |
@@ -139,6 +139,29 @@ def perform_network_assignment_DTALite(assignment_mode, |
139 | 139 |
|
140 | 140 |
|
141 | 141 | def run_DTALite(): |
| 142 | + """ Python interface to call the latest DTALite |
| 143 | +
|
| 144 | + This version of DTALite includes all-new Logbook, enhanced scenarios |
| 145 | + handling, improved I/O functionality, and so on. |
| 146 | +
|
| 147 | + Its source code can be found at https://github.com/asu-trans-ai-lab/DTALite. |
| 148 | +
|
| 149 | + Parameters |
| 150 | + ---------- |
| 151 | + None |
| 152 | +
|
| 153 | + Returns |
| 154 | + ------- |
| 155 | + None |
| 156 | +
|
| 157 | + WARNING |
| 158 | + ------- |
| 159 | + It is not compatible with the classic DTALite and the corresponding data sets |
| 160 | + from https://github.com/jdlph/Path4GMNS/tree/dev/data. |
| 161 | +
|
| 162 | + Run it only with data sets from |
| 163 | + https://github.com/asu-trans-ai-lab/DTALite/tree/main/dataset_v1. |
| 164 | + """ |
142 | 165 | print('\nDTALite run starts\n') |
143 | 166 |
|
144 | 167 | proc_dta = Process(target=_dtalitemm_engine.DTALiteAPI()) |
|
0 commit comments