added warning for sampling/reconstruction

This commit is contained in:
Isaac Meyer 2018-07-20 09:14:03 -05:00
parent 81a15a9cb2
commit 010acb8d1f

View file

@ -219,6 +219,10 @@ class ResonanceCovarianceRange:
List of samples size `n_samples`
"""
warn_str = 'Sampling routine does not guarantee positive values for '\
'parameters. This can lead to undefined behavior in the '\
'reconstruction routine.'
warnings.warn(warn_str)
if not use_subset:
parameters = self.parameters
cov = self.covariance