Skip to content

Determine fractal order by the ADF test

License

Notifications You must be signed in to change notification settings

ulf1/numpy-fracadf

Repository files navigation

PyPI version numpy-fracadf

numpy-fracadf

Determine fractal order by the ADF test

Installation

The numpy-fracadf git repo is available as PyPi package

pip install numpy-fracadf
pip install git+ssh://git@github.com/ulf1/numpy-fracadf.git

Usage

from numpy_fracadf import fracadf2
d = fracadf2(X, tau=1e-4, mmax=527)

Check the examples folder for notebooks.

Appendix

Install a virtual env

python3.6 -m venv .venv
source .venv/bin/activate
pip3 install --upgrade pip
pip3 install -r requirements.txt
pip3 install -r requirements-dev.txt
pip3 install -r requirements-demo.txt

Python commands

  • Jupyter for the examples: jupyter lab
  • Check syntax: flake8 --ignore=F401 --exclude=$(grep -v '^#' .gitignore | xargs | sed -e 's/ /,/g')

Publish

pandoc README.md --from markdown --to rst -s -o README.rst
python setup.py sdist 
twine upload -r pypi dist/*

Clean up

find . -type f -name "*.pyc" | xargs rm
find . -type d -name "__pycache__" | xargs rm -r
rm -r .pytest_cache
rm -r .venv