Skip to content

Commit

Permalink
Merge pull request #67 from pastas/dev
Browse files Browse the repository at this point in the history
Release v0.8.0
  • Loading branch information
dbrakenhoff authored Jun 20, 2022
2 parents 27a70b6 + fec8b3f commit 3e6dd14
Show file tree
Hide file tree
Showing 32 changed files with 71,064 additions and 431 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ jobs:
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install python-snappy
pip install fsspec>=0.3.3
pip install dask[dataframe] --upgrade
pip install pystore
pip install git+https://github.com/manahl/arctic.git
pip install pandas==1.1.5
pip install codecov
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ formats: all

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
version: "3.7"
install:
- requirements: docs/requirements.txt
- method: pip
Expand Down
16 changes: 8 additions & 8 deletions docs/examples.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
========
Examples
========
This page provides some short examples and an example application in a
Jupyter Notebook. The following snippets show typical usage.
This page provides some short examples and example applications in
Jupyter Notebooks. The following snippets show typical usage.

The general idea is to first define the connector object. This object manages
the communication between the user and the data store. The the next step is to
pass that connector to the `PastaStore` to access all of the useful methods
for creating and solving timeseries models.
for building timeseries models.

In-memory
---------
Expand All @@ -19,7 +19,7 @@ is stored in-memory (in dictionaries)::
import pastastore as pst

# define dict connector
conn = pst.DictConnect("my_connector")
conn = pst.DictConnect("my_db")

# create project for managing Pastas data and models
store = pst.PastaStore("my_project", conn)
Expand All @@ -36,7 +36,7 @@ that writes data to disk as no external dependencies are required::

# define pas connector
path = "./data/pas"
conn = pst.PasConnector("my_connector", path)
conn = pst.PasConnector("my_db", path)

# create project for managing Pastas data and models
store = pst.PastaStore("my_project", conn)
Expand All @@ -53,7 +53,7 @@ this to work::

# define arctic connector
connstr = "mongodb://localhost:27017/"
conn = pst.ArcticConnector("my_connector", connstr)
conn = pst.ArcticConnector("my_db", connstr)

# create project for managing Pastas data and models
store = pst.PastasProject("my_project", conn)
Expand All @@ -68,7 +68,7 @@ connection string to a database::

# define pystore connector
path = "./data/pystore"
conn = pst.PystoreConnector("my_connector", path)
conn = pst.PystoreConnector("my_db", path)

# create project for managing Pastas data and models
store = pst.PastasProject("my_project", conn)
Expand All @@ -82,7 +82,7 @@ determining which timeseries are closest to one another. The database
read/write/delete methods can be accessed directly from the `PastaStore`
object::

# create a timeseries
# create a new timeseries
series = pd.Series(index=pd.date_range("2019", "2020", freq="D"), data=1.0)
# add an observation timeseries
Expand Down
3 changes: 3 additions & 0 deletions docs/examples/004_pastastore_yaml_interface.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../examples/notebooks/ex04_pastastore_yaml_interface.ipynb"
}
7 changes: 7 additions & 0 deletions docs/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ Maps
:private-members:


Yaml
----

.. automodule:: pastastore.yaml_interface
:members:


Util
----

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -1593,7 +1593,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.6"
"version": "3.9.7"
},
"toc-showtags": false
},
Expand Down
Loading

0 comments on commit 3e6dd14

Please sign in to comment.