{"action":"created","issue":{"url":"https://api.github.com/repos/XENON1T/pax/issues/629","repository_url":"https://api.github.com/repos/XENON1T/pax","labels_url":"https://api.github.com/repos/XENON1T/pax/issues/629/labels{/name}","comments_url":"https://api.github.com/repos/XENON1T/pax/issues/629/comments","events_url":"https://api.github.com/repos/XENON1T/pax/issues/629/events","html_url":"https://github.com/XENON1T/pax/issues/629","id":266554933,"number":629,"title":"conflict between libraries for MV and TPC with pax_v6.6.8","user":{"login":"mlotfiben","id":11411845,"avatar_url":"https://avatars1.githubusercontent.com/u/11411845?v=4","gravatar_id":"","url":"https://api.github.com/users/mlotfiben","html_url":"https://github.com/mlotfiben","followers_url":"https://api.github.com/users/mlotfiben/followers","following_url":"https://api.github.com/users/mlotfiben/following{/other_user}","gists_url":"https://api.github.com/users/mlotfiben/gists{/gist_id}","starred_url":"https://api.github.com/users/mlotfiben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlotfiben/subscriptions","organizations_url":"https://api.github.com/users/mlotfiben/orgs","repos_url":"https://api.github.com/users/mlotfiben/repos","events_url":"https://api.github.com/users/mlotfiben/events{/privacy}","received_events_url":"https://api.github.com/users/mlotfiben/received_events","type":"User","site_admin":false},"labels":[{"id":215488778,"url":"https://api.github.com/repos/XENON1T/pax/labels/processed%20data%20io","name":"processed data io","color":"fad8c7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-18T16:19:31Z","updated_at":"2018-02-04T14:53:53Z","closed_at":null,"author_association":"NONE","body":"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. \r\n[error_message.txt](https://github.com/XENON1T/pax/files/1395423/error_message.txt)\r\n`\r\nimport os\r\nimport numpy as np \r\nimport pandas as pd\r\nfrom tqdm import tqdm\r\nfrom scipy import stats, optimize, interpolate\r\nfrom scipy.optimize import curve_fit\r\n\r\nfrom scipy.misc import factorial\r\nfrom glob import glob\r\nimport matplotlib\r\nimport matplotlib.pyplot as plt\r\nimport pickle\r\nimport hax\r\nfrom hax import cuts\r\nfrom pax import configuration, units, datastructure\r\npax_version = \"pax_v6.8.0\"\r\nhax.init(experiment='XENON1T', \r\n                 minitree_paths =['/project2/lgrandi/xenon1t/minitrees/%s/'%pax_version],\r\n                 make_minitrees = False,\r\n                 detector='tpc')\r\n\r\ndata = hax.minitrees.load([11345],[\"Basics\",\"Fundamentals\", \"TotalProperties\", \"LargestPeakProperties\",\"Corrections\"])\r\nprint(len(data.index))\r\n\r\n\r\n\r\nhax.init(experiment='XENON1T',\r\n                #minitree_paths =['/project2/lgrandi/xenon1t/minitrees/%s'%pax_version, '/project/lgrandi/xenon1t/minitrees/%s'%self.pax_version],\r\n                main_data_paths=['/project2/lgrandi/xenon1t/processed/%s/'%pax_version],\r\n                detector='muon_veto')\r\n\r\n\r\n\r\ndata_mv = hax.minitrees.load([\"170718_0445\"],treemakers=[\"MuonVetoTreemaker\"])\r\n\r\n\r\n\r\ndata_mv.keys()\r\n`"},"comment":{"url":"https://api.github.com/repos/XENON1T/pax/issues/comments/362912302","html_url":"https://github.com/XENON1T/pax/issues/629#issuecomment-362912302","issue_url":"https://api.github.com/repos/XENON1T/pax/issues/629","id":362912302,"user":{"login":"JelleAalbers","id":4354311,"avatar_url":"https://avatars3.githubusercontent.com/u/4354311?v=4","gravatar_id":"","url":"https://api.github.com/users/JelleAalbers","html_url":"https://github.com/JelleAalbers","followers_url":"https://api.github.com/users/JelleAalbers/followers","following_url":"https://api.github.com/users/JelleAalbers/following{/other_user}","gists_url":"https://api.github.com/users/JelleAalbers/gists{/gist_id}","starred_url":"https://api.github.com/users/JelleAalbers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JelleAalbers/subscriptions","organizations_url":"https://api.github.com/users/JelleAalbers/orgs","repos_url":"https://api.github.com/users/JelleAalbers/repos","events_url":"https://api.github.com/users/JelleAalbers/events{/privacy}","received_events_url":"https://api.github.com/users/JelleAalbers/received_events","type":"User","site_admin":false},"created_at":"2018-02-04T14:53:53Z","updated_at":"2018-02-04T14:53:53Z","author_association":"CONTRIBUTOR","body":"I think it crashes because the muon veto and TPC event classes have a different number of channels, causing a mismatch in the compiled classes. If I'm right you'll get this issue if you use pax for any two different detectors. \r\n\r\nStill, this is odd since, from your error message, ROOT apparently does start recompiling something when you load MV minitrees (as it should: pax will ask ROOT to recompile stuff whenever you load a file with a different C++ class, even different in a small detail). Some magic is apparently lingering...\r\n\r\nI agree cleaning cache files when switching from TPC->MV isn't ideal, but I don't see another way at the moment. "}}
{"actor":{"display_login":"JelleAalbers"}}