Skip to content

Commit

Permalink
Merge pull request #6 from gboeing/release
Browse files Browse the repository at this point in the history
update for release v0.3.2
  • Loading branch information
gboeing committed May 23, 2022
2 parents 74c298a + c8d6259 commit 2d8161a
Show file tree
Hide file tree
Showing 18 changed files with 296 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.6', '3.7', '3.8', '3.9']
python-version: ['3.8', '3.9', '3.10']

defaults:
run:
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change log

## 0.3.2 (2022-05-23)

- update dependencies compatibility

## 0.3.1 (2021-01-01)

- include requirements in distribution
Expand Down Expand Up @@ -31,4 +35,4 @@

## 0.1 (2016-12-27)

- first release
- first release
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015-2021 Geoff Boeing https://geoffboeing.com/
Copyright (c) 2015-2022 Geoff Boeing https://geoffboeing.com/

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion docker/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ pip
pydocstyle
pynamical
pytest
python == 3.8.*
python == 3.10.*
sphinx
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@

# General information about the project.
project = "pynamical"
copyright = "2015-2021, Geoff Boeing"
copyright = "2015-2022, Geoff Boeing"
author = "Geoff Boeing"

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
version = release = "0.3.1"
version = release = "0.3.2"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion examples/pynamical-demo-3d-animation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.6"
"version": "3.10.4"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion examples/pynamical-demo-cobweb-plots.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.6"
"version": "3.10.4"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion examples/pynamical-demo-logistic-model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.6"
"version": "3.10.4"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion examples/pynamical-demo-other-models.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.6"
"version": "3.10.4"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion examples/pynamical-demo-phase-diagrams.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.6"
"version": "3.10.4"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion examples/pynamical-quick-overview.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.6"
"version": "3.10.4"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion pynamical/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

from .pynamical import *

__version__ = "0.3.1"
__version__ = "0.3.2"
7 changes: 4 additions & 3 deletions pynamical/pynamical.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def cubic_map(pop, rate):
float
scalar result of cubic map at time t+1
"""
return rate * pop ** 3 + pop * (1 - rate)
return rate * pop**3 + pop * (1 - rate)


@jit(cache=True, nopython=True) # pragma: no cover
Expand All @@ -180,7 +180,7 @@ def singer_map(pop, rate):
float
scalar result of singer map at time t+1
"""
return rate * (7.86 * pop - 23.31 * pop ** 2 + 28.75 * pop ** 3 - 13.3 * pop ** 4)
return rate * (7.86 * pop - 23.31 * pop**2 + 28.75 * pop**3 - 13.3 * pop**4)


def simulate(
Expand Down Expand Up @@ -436,7 +436,8 @@ def get_bifurcation_plot_points(pops):
for rate in pops.columns:
# append the growth rate as the x column and all the population values
# as the y column
xy_points = xy_points.append(pd.DataFrame({"x": rate, "y": pops[rate]}))
to_append = pd.DataFrame({"x": rate, "y": pops[rate]})
xy_points = pd.concat([xy_points, to_append])

# reset the index and drop old index before returning the xy point data
xy_points = xy_points.reset_index().drop(labels="index", axis=1)
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
matplotlib>=3.3
numba>=0.52
numpy>=1.19
pandas>=1.1
matplotlib>=3.5
numba>=0.53
numpy>=1.20,<1.22
pandas>=1.3
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@
"Topic :: Scientific/Engineering :: Information Analysis",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]

# only specify install_requires if not in RTD environment
Expand All @@ -48,7 +47,7 @@

setup(
name="pynamical",
version="0.3.1",
version="0.3.2",
description="Model, simulate, and visualize discrete nonlinear dynamical systems",
long_description=LONG_DESCRIPTION,
classifiers=CLASSIFIERS,
Expand All @@ -58,6 +57,6 @@
license="MIT",
platforms="any",
packages=["pynamical"],
python_requires=">=3.6",
python_requires=">=3.8",
install_requires=INSTALL_REQUIRES,
)
17 changes: 17 additions & 0 deletions tests/create-environment.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
set -e
eval "$(conda shell.bash hook)"
conda deactivate
mamba env remove -n pynamical --yes
mamba clean --all --yes --quiet
mamba create -c conda-forge --strict-channel-priority -n pynamical --file "../docker/requirements.txt" --yes
eval "$(conda shell.bash hook)"
conda activate pynamical
pip uninstall pynamical --yes
pip install -e ../.
python -m ipykernel install --sys-prefix --name pynamical --display-name "Python (pynamical)"
mamba clean --all --yes --quiet
mamba env export -n pynamical > environment.yml
mamba list
jupyter kernelspec list
ipython -c "import pynamical; print('pynamical version', pynamical.__version__)"
2 changes: 1 addition & 1 deletion tests/environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
- jupyterlab

# linting/testing
- black
- black=22.*
- coverage
- flake8
- flake8-bugbear
Expand Down
Loading

0 comments on commit 2d8161a

Please sign in to comment.