diff options
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) |