[change] decreased verbosity

This commit is contained in:
Sebastian Wehling-Benatelli 2016-06-14 14:55:18 +02:00
parent 073ed658b3
commit 78ebb1f8db

View File

@ -229,8 +229,7 @@ class ProbabilityDensityFunction(object):
# calculate pdf values
try:
pdf = branches[type](create_axis(x0, incr, npts), barycentre, *params)
except TypeError as e:
print('Warning:\n' + e.message + '\n' + 'trying timestamp instead')
except TypeError:
assert isinstance(barycentre, UTCDateTime), 'object not capable of' \
' timestamp representation'
pdf = branches[type](create_axis(x0, incr, npts),