import sys
sys.path.insert(0, "/home/gheed/Documents/projects/TNT/code_repo") #Import my own libraries
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import WD as wd
import pickle
import DigiMethods as dm
import re
from tqdm import tqdm


# ph1 = pickle.load(open('/media/gheed/Seagate_Expansion_Drive1/Data/TNT/digitizer/digitizer_mca_comparison/ph1.pkl', 'rb'))
# ph2 = pickle.load(open('/media/gheed/Seagate_Expansion_Drive1/Data/TNT/digitizer/digitizer_mca_comparison/ph2.pkl', 'rb'))
# ph3 = pickle.load(open('/media/gheed/Seagate_Expansion_Drive1/Data/TNT/digitizer/digitizer_mca_comparison/ph3.pkl', 'rb'))
# ph4 = pickle.load(open('/media/gheed/Seagate_Expansion_Drive1/Data/TNT/digitizer/digitizer_mca_comparison/ph4.pkl', 'rb'))
# ph5 = pickle.load(open('/media/gheed/Seagate_Expansion_Drive1/Data/TNT/digitizer/digitizer_mca_comparison/ph5.pkl', 'rb'))
# ph = ph = ph1+ph2+ph3+ph4+ph5
# plt.hist(ph, bins=max(ph))
# plt.xlim(0,280)
# plt.show()
    


