From 51e95aa5827f624ffc0cfdb572481f50f0c237d2 Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Tue, 29 Mar 2016 10:15:41 +0200 Subject: Documentation fixes. --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9a256d9..aab4184 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ homology and other TDA computations. It does *not* compute anything itself, and exists primarily to marshal data into and out of the formats used by the excellent [DIPHA](https://github.com/DIPHA/dipha) software, in order to make it easier to pre- and post-process data in -Python. +Python. It also does some plotting. Caveats ----- @@ -41,7 +41,7 @@ are set, their values specify these executables. If not, those are searched for in PATH. The package can be installed using standard Python tools, for example -by doing `python setup.py install --user`- +by doing `python setup.py install --user` or something similar. Todo/missing ---- @@ -122,6 +122,11 @@ them. For this, the mpirun and dipha executables must be in the PATH environment variable, or they must be specified through the MPIRUN and DIPHA environment variables. + import phstuff.diphawrapper as dipha + import numpy as np + import phstuff.barcode as bc + import matplotlib.pyplot as plt + weights = np.random.uniform(0, 1, (100, 100)) dipharunner = dipha.DiphaRunner(2) # Compute up to 2-simplices. dipharunner.weight_matrix(weights) -- cgit v1.2.3