Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
85f1724
Tests for temporal types
estebanzimanyi Aug 9, 2023
8103e13
Tests for temporal types
estebanzimanyi Aug 22, 2023
6073f65
Update *set_make functions and remove unused modifiers
Diviloper Aug 22, 2023
23c35b5
Update gserialized calls
Diviloper Aug 22, 2023
28ba7a3
Fix *_to_gserialized calls (use wkt instead of wkb)
Diviloper Aug 22, 2023
7ac3f04
Tests for temporal types
estebanzimanyi Aug 22, 2023
a4b7233
Fix Box from_time constructors
Diviloper Aug 22, 2023
336e8ea
Tests for temporal types
estebanzimanyi Aug 22, 2023
12331f3
Tests for temporal types
estebanzimanyi Aug 22, 2023
084f24e
Tests for temporal types
estebanzimanyi Aug 22, 2023
e75a516
Tests for temporal types
estebanzimanyi Aug 24, 2023
92de424
Fix textset_make function
Diviloper Aug 24, 2023
c0dec35
Merge branch 'develop' into tests3
Diviloper Sep 4, 2023
90245b2
Update to last MEOS changes
Diviloper Sep 4, 2023
0bf49c6
Refactor expand method in stbox.py
Diviloper Sep 4, 2023
f04ff85
Refactor expand and union methods in TBox class
Diviloper Sep 4, 2023
b0970ee
Add Box class to tnumber imports.
Diviloper Sep 4, 2023
fc78850
Add TSequence and TBox imports to temporal.py
Diviloper Sep 4, 2023
eb537de
Synchronize with MEOS API
estebanzimanyi Sep 5, 2023
4a60f0c
Synchronize with MEOS API
estebanzimanyi Sep 7, 2023
e83adc2
Add base classes for PyMEOS collections.
Diviloper Sep 8, 2023
784ce75
Finish Span and Period abstraction
Diviloper Sep 8, 2023
ebc30d6
Add Set and TimestampSet
Diviloper Sep 9, 2023
3615220
Improve tests
estebanzimanyi Sep 8, 2023
2fd46cf
Finish collection abstraction
Diviloper Sep 10, 2023
244e2fd
Fix issues
Diviloper Sep 10, 2023
30b0e94
Synchronize with MEOS API
estebanzimanyi Sep 12, 2023
eb15684
Synchronize with MEOS API
estebanzimanyi Sep 12, 2023
eada6b3
Remove old time classes.
Diviloper Sep 19, 2023
980bdea
Add new modules
Diviloper Sep 21, 2023
93cb626
Merge branch 'tests3' into spans
Diviloper Sep 21, 2023
6547d8f
Fix merge issues
Diviloper Sep 21, 2023
d00fe87
Add before/after to tests
Diviloper Sep 21, 2023
e951b41
Improve tests
estebanzimanyi Sep 21, 2023
30d242e
Fix errors (mainly documentation and typing) in set.py
Diviloper Sep 21, 2023
546d18e
Merge branch 'spans' into tests3
Diviloper Sep 21, 2023
1afdd1c
Improve tests
estebanzimanyi Sep 21, 2023
854d4b4
Improve tests
estebanzimanyi Sep 23, 2023
251c64f
Fix parameter generation for more than 2 levels of indirection.
Diviloper Sep 24, 2023
5371abd
Remove extra returned value in space split
Diviloper Sep 24, 2023
19a760a
Improve tests
estebanzimanyi Sep 24, 2023
b164f55
Merge branch 'tests3' of https://github.com/MobilityDB/PyMEOS into te…
estebanzimanyi Sep 24, 2023
e6154cb
Add textset and len for sets
Diviloper Sep 24, 2023
5fafe58
Update pymeos_cffi
Diviloper Sep 26, 2023
2951a18
Add tests for time in collections folder and update db connectors.
Diviloper Sep 26, 2023
6c919f8
Update example
Diviloper Sep 26, 2023
d0a00dc
Improve tests
estebanzimanyi Sep 25, 2023
18ce66f
Add collection classes
estebanzimanyi Sep 27, 2023
58a7be5
Improve tests
estebanzimanyi Sep 27, 2023
d2c3426
Merge with spans branch
estebanzimanyi Sep 27, 2023
bf97205
Merge with spans branch
estebanzimanyi Sep 27, 2023
7334851
Improve tests
estebanzimanyi Sep 27, 2023
9ac7045
Add all sets and spans (missing spansets, only dummy to avoid error).
Diviloper Sep 27, 2023
3d4b78b
Improve tests
estebanzimanyi Sep 28, 2023
d7c2d2e
Merge with spans
estebanzimanyi Sep 28, 2023
2892682
Add missing collections in init
Diviloper Sep 28, 2023
f072d57
Add subtract_from implementation in timestampset
Diviloper Sep 28, 2023
4dc2c62
Update imports
Diviloper Sep 28, 2023
77031ee
Improve tests
estebanzimanyi Sep 28, 2023
a167778
Improve tests
estebanzimanyi Sep 28, 2023
199dcc0
Remove read_from_cursor from time collections since generic method in…
Diviloper Sep 28, 2023
0fe85c1
Fix wrong use of *span_in instead of *span_make
Diviloper Sep 28, 2023
a9ffe73
Improve tests
estebanzimanyi Sep 28, 2023
6bf8536
Improve tests
estebanzimanyi Sep 28, 2023
833f3ae
Improve tests
estebanzimanyi Sep 29, 2023
cb69f8f
Improve tests
estebanzimanyi Sep 29, 2023
247de43
Improve tests
estebanzimanyi Sep 29, 2023
79ae69f
Improve tests
estebanzimanyi Sep 29, 2023
fdd4f01
Improve tests
estebanzimanyi Sep 30, 2023
6f533cc
Improve tests
estebanzimanyi Sep 30, 2023
4f4726f
Implement abstract methods of intspanset and floatspanset
estebanzimanyi Sep 30, 2023
c9ae720
Improve tests
estebanzimanyi Sep 30, 2023
b7c2fef
Improve tests
estebanzimanyi Oct 1, 2023
c04c098
Improve tests
estebanzimanyi Oct 1, 2023
917a1d7
Improve tests
estebanzimanyi Oct 1, 2023
86390ff
Refactor RangePlotter into SpanPlotter
Diviloper Oct 2, 2023
e89f448
Add conversion between int and float collections.
Diviloper Oct 2, 2023
2d09412
Fix some typings.
Diviloper Oct 2, 2023
d560a8b
Remove expandable capacity since make_exp functions are no longer exp…
Diviloper Oct 2, 2023
7af53b7
Fix some typing and TFloat value_spans method.
Diviloper Oct 2, 2023
31690b2
Remove some outdated references to old ranges from the spans package
Diviloper Oct 2, 2023
c279bf3
Remove spans dependency and postgis support from pymeos_cffi
Diviloper Oct 2, 2023
c5a01e0
Remove postgis support from PyMEOS
Diviloper Oct 2, 2023
c008f00
Make GeoPandas an optional dependency (since it has many dependencies…
Diviloper Oct 2, 2023
cdce8bb
Move to_shapely_geometry from TGeomPoint to TPoint
Diviloper Oct 3, 2023
91be2af
Typo
Diviloper Oct 3, 2023
cf3e369
Export MEOS exceptions in PyMEOS package
Diviloper Oct 3, 2023
d2f1703
Add strid to converted shapely geometries
Diviloper Oct 3, 2023
f49215c
Add better exception representation
Diviloper Oct 3, 2023
dab2fd3
Refactor hardcoded paths in building scripts
Diviloper Oct 3, 2023
2b63166
Use MEOS error enum values instead of copied one.
Diviloper Oct 4, 2023
291d859
Move documentation to root level to have joint docs with pymeos, pyme…
Diviloper Oct 5, 2023
d31dba6
Update rdt yaml
Diviloper Oct 5, 2023
72c5cc0
Update rdt yaml
Diviloper Oct 5, 2023
164c921
Update rtd conf
Diviloper Oct 5, 2023
d5772ba
Update rtd conf
Diviloper Oct 5, 2023
371bb67
Add docs requirements
Diviloper Oct 5, 2023
7f3403a
Add docs yml
Diviloper Oct 5, 2023
36f3405
Add docs reqs
Diviloper Oct 5, 2023
c2a4e41
Pump version
Diviloper Oct 5, 2023
453a8f9
Add missing requirements
Diviloper Oct 5, 2023
fbd236c
Add debug flag and print in error handler
Diviloper Oct 6, 2023
18228a8
Add debug capabilities to PyMEOS init functions
Diviloper Oct 6, 2023
f4e0db0
Merge branch 'tests3' into documentation
Diviloper Oct 6, 2023
526db2c
Update collection documentation
Diviloper Oct 7, 2023
f691812
Remove MEOS function from doc in pymeos_set_debug
Diviloper Oct 7, 2023
12b93d7
Update structure and theme
Diviloper Oct 7, 2023
0a4d16f
Add installation instructions
Diviloper Oct 9, 2023
41a0fd7
Update main page
Diviloper Oct 9, 2023
48b416a
Add links to demos in Examples page
Diviloper Oct 9, 2023
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
Pipfile.lock
*-checkpoint.ipynb
docs/_build
12 changes: 12 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
build:
os: "ubuntu-20.04"
tools:
python: "3.10"

python:
install:
- requirements: docs/requirements.txt

sphinx:
configuration: docs/conf.py
File renamed without changes.
12 changes: 6 additions & 6 deletions pymeos/docs/conf.py → docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,20 @@
project = 'PyMEOS'
copyright = '2023, Víctor Diví'
author = 'Víctor Diví'
release = '1.1.2'
release = '1.1.3a5'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
import os
import sys
sys.path.insert(0, os.path.abspath('..'))

sys.path.insert(0, os.path.abspath('../pymeos_cffi'))
sys.path.insert(0, os.path.abspath('../pymeos'))

extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.napoleon',
'sphinx.ext.intersphinx'
'sphinx.ext.intersphinx',
]

templates_path = ['_templates']
Expand All @@ -29,17 +31,15 @@

# -- Intersphinx config --------
intersphinx_mapping = {
'spans': ('https://runfalk.github.io/spans/', None),
'asyncpg': ('https://magicstack.github.io/asyncpg/current/', None),
'psycopg': ('https://www.psycopg.org/psycopg3/docs/', None),
'psycopg2': ('https://www.psycopg.org/docs/', None),
'shapely': ('https://shapely.readthedocs.io/en/stable/', None),
'python': ('https://docs.python.org/3', None)
}


# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'sphinx_rtd_theme'
html_theme = 'sphinx_book_theme'
html_static_path = ['_static']
File renamed without changes
File renamed without changes
66 changes: 66 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
.. PyMEOS documentation master file, created by
sphinx-quickstart on Thu Oct 5 18:26:38 2023.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

=======
PyMEOS
=======

`MEOS (Mobility Engine, Open Source) <https://www.libmeos.org/>`__ is a
C library which enables the manipulation of temporal and spatio-temporal
data based on `MobilityDB <https://mobilitydb.com/>`__\ ’s data types
and functions.

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

Requirements
============

PyMEOS 1.1 requires

* Python >=3.7
* MEOS >=1.1

Installing PyMEOS
==================

We recommend installing PyMEOS using one of the available built
distributions using ``pip``:

.. code-block:: console

$ pip install pymeos

See the `installation documentation <https://pymeos.readthedocs.io/en/latest/src/installation.html>`__
for more details and advanced installation instructions.

.. toctree::
:caption: User Guide
:hidden:

src/installation
src/manual
src/examples


.. toctree::
:caption: API Reference
:hidden:

src/api/pymeos.meos_init
src/api/pymeos.collections
src/api/pymeos.temporal
src/api/pymeos.main
src/api/pymeos.boxes
src/api/pymeos.aggregators
src/api/pymeos.plotters
src/api/pymeos.db

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
File renamed without changes.
10 changes: 10 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
python-dateutil
shapely
pymeos_cffi==1.1.0a6
asyncpg
psycopg
psycopg2
matplotlib
geopandas
sphinx
sphinx-book-theme
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions docs/src/api/pymeos.collections.base.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Base Abstract Collections
===================

Set
-------------------------------

.. automodule:: pymeos.collections.base.set
:members:
:undoc-members:
:show-inheritance:

Span
-------------------------

.. automodule:: pymeos.collections.base.span
:members:
:undoc-members:
:show-inheritance:

SpanSet
----------------------------

.. automodule:: pymeos.collections.base.spanset
:members:
:undoc-members:
:show-inheritance:
53 changes: 53 additions & 0 deletions docs/src/api/pymeos.collections.numeric.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
Numeric Collections
===================

IntSet
-----------------------

.. automodule:: pymeos.collections.number.intset
:members:
:undoc-members:
:show-inheritance:


FloatSet
-----------------------

.. automodule:: pymeos.collections.number.floatset
:members:
:undoc-members:
:show-inheritance:

IntSpan
-----------------------

.. automodule:: pymeos.collections.number.intspan
:members:
:undoc-members:
:show-inheritance:


FloatSpan
-----------------------

.. automodule:: pymeos.collections.number.floatspan
:members:
:undoc-members:
:show-inheritance:

IntSpanSet
-----------------------

.. automodule:: pymeos.collections.number.intspanset
:members:
:undoc-members:
:show-inheritance:


FloatSpanSet
-----------------------

.. automodule:: pymeos.collections.number.floatspanset
:members:
:undoc-members:
:show-inheritance:
13 changes: 13 additions & 0 deletions docs/src/api/pymeos.collections.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Collections
===================


.. toctree::
:maxdepth: 2

pymeos.collections.base
pymeos.collections.time
pymeos.collections.spatial
pymeos.collections.numeric
pymeos.collections.text

29 changes: 29 additions & 0 deletions docs/src/api/pymeos.collections.spatial.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Spatial Collections
===================


GeoSet
-----------------------

.. autoclass:: pymeos.collections.geo.geoset.GeoSet
:members:
:undoc-members:
:show-inheritance:


GeometrySet
-----------------------

.. autoclass:: pymeos.collections.geo.geoset.GeometrySet
:members:
:undoc-members:
:show-inheritance:


GeographySet
-----------------------

.. autoclass:: pymeos.collections.geo.geoset.GeographySet
:members:
:undoc-members:
:show-inheritance:
10 changes: 10 additions & 0 deletions docs/src/api/pymeos.collections.text.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Text Collections
===================

TextSet
-------------------------------

.. automodule:: pymeos.collections.text.textset
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
Time
Time Collections
===================

Time
-----------------------

.. automodule:: pymeos.time.time
.. automodule:: pymeos.collections.time.time
:members:
:undoc-members:
:show-inheritance:

Period
-------------------------
TimestampSet
-------------------------------

.. automodule:: pymeos.time.period
.. automodule:: pymeos.collections.time.timestampset
:members:
:undoc-members:
:show-inheritance:

PeriodSet
----------------------------
Period
-------------------------

.. automodule:: pymeos.time.periodset
.. automodule:: pymeos.collections.time.period
:members:
:undoc-members:
:show-inheritance:

TimestampSet
-------------------------------
PeriodSet
----------------------------

.. automodule:: pymeos.time.timestampset
.. automodule:: pymeos.collections.time.periodset
:members:
:undoc-members:
:show-inheritance:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions docs/src/examples.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Examples
====================

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