Exemplo n.º 1
0
 def __init__(self, data, pre_period, post_period, pre_data, post_data, alpha,
              **kwargs):
     Inferences.__init__(self, n_sims=kwargs.get('n_sims', 1000))
     Summary.__init__(self)
     self.data = data
     self.pre_period = pre_period
     self.post_period = post_period
     self.pre_data = pre_data
     self.post_data = post_data
     self.alpha = alpha
     self.normed_pre_data = None
     self.normed_post_data = None
     self.mu_sig = None
Exemplo n.º 2
0
def test_summary_raises(summarizer):
    summarizer = Summary()
    with pytest.raises(RuntimeError):
        summarizer.summary()

    with pytest.raises(ValueError):
        summarizer.summary_data = 'test'
        summarizer.summary('test')
Exemplo n.º 3
0
def summarizer():
    return Summary()