From 587a845289a4e29014f67d4c3379b2b4d6b1f102 Mon Sep 17 00:00:00 2001 From: ROUVREAU Vincent Date: Tue, 14 Jan 2020 14:40:41 +0100 Subject: print errors to stderr --- ...ic_cubical_complex_barcode_persistence_from_perseus_file_example.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/python/example/periodic_cubical_complex_barcode_persistence_from_perseus_file_example.py') 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) -- cgit v1.2.3