summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorBryn Keller <xoltar314@gmail.com>2020-03-09 21:57:57 +0000
committermkerber <kerber@tugraz.at>2020-03-09 21:57:57 +0000
commit46116abeb6cab4893ac774e85efed5e3b87d5485 (patch)
tree457f557933a14a6e606efb22a07cf7e58ff8aa54 /python
parentdaea707b05305fa4ac3ee6e689f12d0ff673a8dd (diff)
parent5485d57c5632c54c5c377a17672b88357c6455db (diff)
Merged in xoltar/phat/example-use-default-repr (pull request #2)
Use default representation for example rather than vector_vector
Diffstat (limited to 'python')
-rw-r--r--python/README.rst6
-rw-r--r--python/src/simple_example.py6
2 files changed, 8 insertions, 4 deletions
diff --git a/python/README.rst b/python/README.rst
index 0c6c391..52bc150 100644
--- a/python/README.rst
+++ b/python/README.rst
@@ -99,8 +99,10 @@ Now the code::
import phat
- # define a boundary matrix with the chosen internal representation
- boundary_matrix = phat.boundary_matrix(representation = phat.representations.vector_vector)
+ boundary_matrix = phat.boundary_matrix()
+
+ # or define a boundary matrix with the chosen internal representation
+ # boundary_matrix = phat.boundary_matrix(representation = phat.representations.bit_tree_pivot_column)
# set the respective columns -- (dimension, boundary) pairs
boundary_matrix.columns = [ (0, []),
diff --git a/python/src/simple_example.py b/python/src/simple_example.py
index 955e213..7aa6214 100644
--- a/python/src/simple_example.py
+++ b/python/src/simple_example.py
@@ -21,8 +21,10 @@ if __name__ == "__main__":
import phat
- # define a boundary matrix with the chosen internal representation
- boundary_matrix = phat.boundary_matrix(representation = phat.representations.vector_vector)
+ boundary_matrix = phat.boundary_matrix()
+
+ # or define a boundary matrix with the chosen internal representation
+ # boundary_matrix = phat.boundary_matrix(representation = phat.representations.bit_tree_pivot_column)
# set the respective columns -- (dimension, boundary) pairs
boundary_matrix.columns = [ (0, []),