In [41]:
%%javascript
$.getScript('https://kmahelona.github.io/ipython_notebook_goodies/ipython_notebook_toc.js')
In [3]:
%load_ext autoreload
%autoreload 2
In [4]:
import os
import sys
sys.path.append('../scripts/')
import numpy as np
import bicorr_e
import bicorr
import bicorr_plot as bicorr_plot
import bicorr_math as bicorr_math
In [5]:
import matplotlib.pyplot as plt
import matplotlib.colors
import seaborn as sns
sns.set(style='ticks')
In [6]:
bhm_e, e_bin_edges, note = bicorr_e.load_bhm_e('../analysis/Cf072115_to_Cf072215b/datap')
In [7]:
print(bhm_e.shape)
print(e_bin_edges.shape)
print(note)
Load detector pair dictionaries.
In [8]:
det_df = bicorr.load_det_df()
In [9]:
dict_pair_to_index, dict_index_to_pair, dict_pair_to_angle = bicorr.build_dict_det_pair(det_df)
In [10]:
help(bicorr_e.build_bhp_e)
In [11]:
bhp_e, norm_factor = bicorr_e.build_bhp_e(bhm_e,e_bin_edges)
Look at subsets of pairs later. For now I'll assume it's going to work...
In [12]:
bhp_e.shape
Out[12]:
I'm going to make a function called bhp_e_plot
based off of bhp_plot
.
In [25]:
help(bicorr_plot.bhp_e_plot)
In [14]:
bicorr_plot.bhp_e_plot(bhp_e, e_bin_edges, title='Plot of bhp_e', show_flag=True)
Try out the vmin
and vmax
input parameters.
In [15]:
bicorr_plot.bhp_e_plot(bhp_e, e_bin_edges, vmin=10,vmax=1e4,title='Plot of bhp_e', show_flag=True)
Try adding num_fissions
.
In [22]:
num_fissions = 2194651200.00
bhp_e, norm_factor = bicorr_e.build_bhp_e(bhm_e,e_bin_edges,num_fissions=num_fissions)
In [23]:
bicorr_plot.bhp_e_plot(bhp_e, e_bin_edges, title='Normalized plot of bhp_e', show_flag=True)
Looks pretty good. Zoom in on the central area to see what's going on there.
In [26]:
zoom_range = [0,6]
bicorr_plot.bhp_e_plot(bhp_e, e_bin_edges, zoom_range=zoom_range, title='Normalized plot of bhp_e', show_flag=True)
In [27]:
zoom_range = [0,0.5]
bicorr_plot.bhp_e_plot(bhp_e, e_bin_edges, zoom_range=zoom_range, title='Normalized plot of bhp_e', show_flag=True)
Methods for plotting and analyzing slices are in methods > slices_bhp_e.ipynb
.
In [ ]: