Skip to content

conflict between libraries for MV and TPC with pax_v6.6.8 #629

Description

@mlotfiben

When initialising both the TPC and MV one after the other I have encountered a problem that seems to do with the libraries that are responsible for reading root files into pandas data frames (I am not an expert on this, I may well be wrong here). I am attaching two files one which shows the error and one python file that can help in reproducing the error.
error_message.txt
`
import os
import numpy as np
import pandas as pd
from tqdm import tqdm
from scipy import stats, optimize, interpolate
from scipy.optimize import curve_fit

from scipy.misc import factorial
from glob import glob
import matplotlib
import matplotlib.pyplot as plt
import pickle
import hax
from hax import cuts
from pax import configuration, units, datastructure
pax_version = "pax_v6.8.0"
hax.init(experiment='XENON1T',
minitree_paths =['/project2/lgrandi/xenon1t/minitrees/%s/'%pax_version],
make_minitrees = False,
detector='tpc')

data = hax.minitrees.load([11345],["Basics","Fundamentals", "TotalProperties", "LargestPeakProperties","Corrections"])
print(len(data.index))

hax.init(experiment='XENON1T',
#minitree_paths =['/project2/lgrandi/xenon1t/minitrees/%s'%pax_version, '/project/lgrandi/xenon1t/minitrees/%s'%self.pax_version],
main_data_paths=['/project2/lgrandi/xenon1t/processed/%s/'%pax_version],
detector='muon_veto')

data_mv = hax.minitrees.load(["170718_0445"],treemakers=["MuonVetoTreemaker"])

data_mv.keys()
`

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions