Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
.idea
Pipfile.lock
*-checkpoint.ipynb
docs/_build
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ temporal and spatio-temporal data based on [MobilityDB](https://mobilitydb.com/)

PyMEOS is a library built on top of MEOS that provides all of its functionality wrapped in a set of Python classes.

This repository contains 3 subprojects:
This repository contains 2 subprojects:

- [PyMEOS CFFI](./pymeos_cffi): wrapper of the MEOS C Library built using CFFI.
- [PyMEOS](./pymeos): library that exposes the set of classes that should be used by the developer. Built on top of
PyMEOS CFFI.
- [PyMEOS Examples](./pymeos_examples): set of example programs using PyMEOS.

# Usage

Expand Down Expand Up @@ -50,6 +49,8 @@ print(f'Speeds: {speed}')
pymeos_finalize()
````

For more examples, see [PyMEOS Examples repository](https://github.com/MobilityDB/PyMEOS-Examples)

# Documentation

Visit our [ReadTheDocs page](https://pymeos.readthedocs.io/en/latest/) for a more complete and detailed documentation, including an installation manual and several examples.
20 changes: 20 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,23 @@

html_theme = 'sphinx_book_theme'
html_static_path = ['_static']

import requests


def download_file(url, dest_path):
response = requests.get(url, stream=True)
response.raise_for_status() # Ensure we got a successful response

with open(dest_path, 'wb') as file:
for chunk in response.iter_content(chunk_size=8192):
file.write(chunk)


prefix = "https://raw.githubusercontent.com/MobilityDB/PyMEOS-Examples/main/"
download_file(
f"{prefix}PyMEOS_Examples/AIS.ipynb",
"src/examples/AIS.ipynb")
download_file(
f"{prefix}PyMEOS_Examples/BerlinMOD.ipynb",
"src/examples/BerlinMOD.ipynb")
1 change: 0 additions & 1 deletion docs/src/examples

This file was deleted.

2 changes: 1 addition & 1 deletion docs/src/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Examples
====================

Section under construction. However, you can check the existing examples available in the
`PyMEOS repository <https://github.com/MobilityDB/PyMEOS>`__ and the
`PyMEOS Examples repository <https://github.com/MobilityDB/PyMEOS_Examples>`__ and the
`PyMEOS-Demo repository <https://github.com/Diviloper/PyMEOS-demo>`__.

.. toctree::
Expand Down
6 changes: 3 additions & 3 deletions docs/src/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ time of the PyMEOS release. Install the binary wheel with pip as follows:
$ pip install pymeos


Installation using conda (incoming, not available yet)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Installation using conda
^^^^^^^^^^^^^^^^^^^^^^^^

PyMEOS is available on the conda-forge channel. Install as follows::

$ conda install pymeos --channel conda-forge
$ conda install conda-forge::pymeos


Installation from source with custom MEOS library
Expand Down
511 changes: 0 additions & 511 deletions pymeos_examples/MovingPandas/2-computing-speed.ipynb

This file was deleted.

300 changes: 0 additions & 300 deletions pymeos_examples/MovingPandas/7-generalizing-trajectories.ipynb

This file was deleted.

Loading