In [ ]:
from __future__ import print_function, division

%matplotlib inline
import seaborn as sns; sns.set(context="poster", font_scale=1.5)
import matplotlib.pyplot as plt
import numpy as np

## Boilerplate path hack to give access to full clustered_SNe package
import sys, os
if __package__ is None:
    if os.pardir not in sys.path[0]:
        file_dir = os.getcwd()
        sys.path.insert(0, os.path.join(file_dir, 
                                        os.pardir, 
                                        os.pardir))
        
            
from clustered_SNe.analysis.fit_helpers import AggregatedResults, \
                                               BayesianFit

In [ ]:
aggregated_results = AggregatedResults()

In [ ]:
bf = BayesianFit(aggregated_results)

In [ ]:
try:
    bf.load_df()
except KeyError:
    bf.generate_df()
    bf.save_df()

In [ ]:
bf.print_latex_credibility_intervals()

In [ ]:
bf.create_trace_plots()

In [ ]:
bf.create_autocorrelation_plots()

In [ ]:
figure = bf.create_corner_plots()