summaryrefslogtreecommitdiff
path: root/src/python/example/periodic_cubical_complex_barcode_persistence_from_perseus_file_example.py
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-01-14 14:40:41 +0100
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2020-01-14 14:40:41 +0100
commit587a845289a4e29014f67d4c3379b2b4d6b1f102 (patch)
tree6a43e1ce25342d9707db2362c9577dd680845b1d /src/python/example/periodic_cubical_complex_barcode_persistence_from_perseus_file_example.py
parent88c30209fe58d29d24d5bba3c137cd5e5def29c5 (diff)
print errors to stderr
Diffstat (limited to 'src/python/example/periodic_cubical_complex_barcode_persistence_from_perseus_file_example.py')
-rwxr-xr-xsrc/python/example/periodic_cubical_complex_barcode_persistence_from_perseus_file_example.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/example/periodic_cubical_complex_barcode_persistence_from_perseus_file_example.py b/src/python/example/periodic_cubical_complex_barcode_persistence_from_perseus_file_example.py
index c692e66f..97bfd49f 100755
--- a/src/python/example/periodic_cubical_complex_barcode_persistence_from_perseus_file_example.py
+++ b/src/python/example/periodic_cubical_complex_barcode_persistence_from_perseus_file_example.py
@@ -2,6 +2,7 @@
import argparse
import matplotlib.pyplot as plot
+import sys
import gudhi
""" This file is part of the Gudhi Library - https://gudhi.inria.fr/ - which is released under MIT.
@@ -73,4 +74,4 @@ if is_file_perseus(args.file):
gudhi.plot_persistence_barcode(diag)
plot.show()
else:
- print(args.file, "is not a valid perseus style file")
+ print(args.file, "is not a valid perseus style file", file=sys.stderr)