From 521a9d2d818c4cfedb522b72345170f0585f3b2d Mon Sep 17 00:00:00 2001 From: Tias Maiti Date: Wed, 29 Jan 2014 20:16:31 +0000 Subject: [PATCH] changed STDOUT to STDERR for complaining about missing h5py. Please report any warnings or errors to STDERR since otherwise command piping breaks... --- lib/damask/result.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/damask/result.py b/lib/damask/result.py index 05236c978..8d70cdfaf 100644 --- a/lib/damask/result.py +++ b/lib/damask/result.py @@ -1,11 +1,12 @@ # $Id$ import numpy as np +import sys try: import h5py except: - print('Could not import h5py.') + sys.stderr.write('Could not import h5py.\n') class Result(): '''