Goal: Modify script to build bhm and bhm_e together

Rather than reloading all of the bicorr_data, build them at the same time.

P. Schuster
University of Michigan
June 2018


In [1]:
import os
import sys
import numpy as np

In [2]:
sys.path.append('../scripts')

In [3]:
import bicorr as bicorr
import bicorr_e as bicorr_e

In [4]:
%load_ext autoreload
%autoreload 2

In [5]:
os.listdir('../datar')


Out[5]:
['1',
 '2',
 'bhm_e.npz',
 'cced1',
 'cced1_note.md',
 'cced1_part',
 'cced1_part_note.md',
 'singles_hist.npz',
 'sparse_bhm.npz',
 'timeOffset.txt',
 'timeOffset_note.txt']

In [6]:
bicorr_e.build_bhm_both(1,3,root_path='../datar')


Generating bicorr histograms for bicorr data in folders:  [1 2]
Loading data in folder  1
Building bhms in folder  1
100%|##########| 695/695 [00:00<00:00, 16997.23it/s]
100%|##########| 695/695 [00:00<00:00, 23230.01it/s]
Loading data in folder  2
Building bhms in folder  2
100%|##########| 695/695 [00:00<00:00, 26804.24it/s]
100%|##########| 695/695 [00:00<00:00, 24891.91it/s]
Generating sparse matrix
100%|##########| 531/531 [00:00<00:00, 33276.19it/s]
Saving sparse matrix data to .npz file
Saving bhm_e to .npz file
Bicorr hist master bhm_e build complete

In [ ]: