Skip to content

Commit

Permalink
Merge pull request #129 from TUDelft-CITG/feature/opentnsim-openclsim…
Browse files Browse the repository at this point in the history
…-connection

OpenTNSim OpenCLSim connection
  • Loading branch information
SiggyF committed May 8, 2023
2 parents ab8d759 + 34d2e59 commit 1d48efa
Show file tree
Hide file tree
Showing 42 changed files with 7,640 additions and 18,271 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
run: |
sudo apt-get -qq update
sudo apt-get install -y gdal-bin libgdal-dev
# check version that is installed for python compatibility
gdalinfo --version
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
Expand All @@ -32,7 +34,7 @@ jobs:
# Install old version of pip /setuptools, issue with gdal. I still get this issue...
python -m pip install --upgrade pip setuptools==57.5
# install gdal separate
pip install wheel==0.38.4 gdal==3.0.4
pip install wheel==0.38.4 gdal==3.4.1
# Now upgrade pip / setuptools for real
python -m pip install --upgrade pip setuptools
# now install the rest
Expand Down
32 changes: 15 additions & 17 deletions notebooks/02_MoveActivity.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,9 @@
"TransportProcessingResource = type(\n",
" \"TransportProcessingResource\",\n",
" (\n",
" core.Identifiable,\n",
" core.Log,\n",
" core.ContainerDependentMovable,\n",
" core.HasResource,\n",
" core.Processor,\n",
" core.ContainerDependentMovable,\n",
" ),\n",
" {},\n",
")"
Expand Down Expand Up @@ -237,13 +235,13 @@
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>59203ad4-964b-4fe9-a427-24f7025dc725</td>\n",
" <td>88ed2a20-c6ea-4e59-9671-459d6a313ae2</td>\n",
" <td>1970-01-01 00:00:00.000000</td>\n",
" <td>START</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>59203ad4-964b-4fe9-a427-24f7025dc725</td>\n",
" <td>88ed2a20-c6ea-4e59-9671-459d6a313ae2</td>\n",
" <td>1970-01-01 00:15:42.824591</td>\n",
" <td>STOP</td>\n",
" </tr>\n",
Expand All @@ -253,8 +251,8 @@
],
"text/plain": [
" Activity Timestamp \\\n",
"0 59203ad4-964b-4fe9-a427-24f7025dc725 1970-01-01 00:00:00.000000 \n",
"1 59203ad4-964b-4fe9-a427-24f7025dc725 1970-01-01 00:15:42.824591 \n",
"0 88ed2a20-c6ea-4e59-9671-459d6a313ae2 1970-01-01 00:00:00.000000 \n",
"1 88ed2a20-c6ea-4e59-9671-459d6a313ae2 1970-01-01 00:15:42.824591 \n",
"\n",
" ActivityState \n",
"0 START \n",
Expand Down Expand Up @@ -367,8 +365,8 @@
" <th>Activity</th>\n",
" <th>Timestamp</th>\n",
" <th>ActivityState</th>\n",
" <th>geometry</th>\n",
" <th>container level</th>\n",
" <th>geometry</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
Expand All @@ -377,29 +375,29 @@
" <td>Move activity</td>\n",
" <td>1970-01-01 00:00:00.000000</td>\n",
" <td>START</td>\n",
" <td>POINT (4.18055556 52.18664444)</td>\n",
" <td>0.0</td>\n",
" <td>POINT (4.18055556 52.18664444)</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Move activity</td>\n",
" <td>1970-01-01 00:15:42.824591</td>\n",
" <td>STOP</td>\n",
" <td>POINT (4.25222222 52.11428333)</td>\n",
" <td>0.0</td>\n",
" <td>POINT (4.25222222 52.11428333)</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Activity Timestamp ActivityState \\\n",
"0 Move activity 1970-01-01 00:00:00.000000 START \n",
"1 Move activity 1970-01-01 00:15:42.824591 STOP \n",
" Activity Timestamp ActivityState container level \\\n",
"0 Move activity 1970-01-01 00:00:00.000000 START 0.0 \n",
"1 Move activity 1970-01-01 00:15:42.824591 STOP 0.0 \n",
"\n",
" geometry container level \n",
"0 POINT (4.18055556 52.18664444) 0.0 \n",
"1 POINT (4.25222222 52.11428333) 0.0 "
" geometry \n",
"0 POINT (4.18055556 52.18664444) \n",
"1 POINT (4.25222222 52.11428333) "
]
},
"metadata": {},
Expand Down Expand Up @@ -434,7 +432,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.9.16"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions notebooks/03_ShiftAmountActivity.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@
"TransportProcessingResource = type(\n",
" \"TransportProcessingResource\",\n",
" (\n",
" core.Identifiable,\n",
" core.Log,\n",
" core.ContainerDependentMovable,\n",
" core.HasResource,\n",
" core.Processor,\n",
" core.Identifiable,\n",
" core.Log,\n",
" ),\n",
" {},\n",
")"
Expand Down Expand Up @@ -434,7 +434,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.9.16"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 1d48efa

Please sign in to comment.