diff options
author | Gard Spreemann <gspreemann@gmail.com> | 2016-03-29 10:15:41 +0200 |
---|---|---|
committer | Gard Spreemann <gspreemann@gmail.com> | 2016-03-29 10:15:41 +0200 |
commit | 51e95aa5827f624ffc0cfdb572481f50f0c237d2 (patch) | |
tree | 6f7862027614b26636f179c806a08a6c329a92af /README.md | |
parent | ea4a9f9d67c849bf78ec3bf72564e8eb317734ac (diff) |
Documentation fixes.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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) |