Re: PyROOT and Athena: Cannot read LVL1NameMap

From: Sebastien Binet <binet_at_cern.ch>
Date: Tue, 30 Nov 2010 10:46:58 +0100


On Tue, 30 Nov 2010 10:31:55 +0100, Alexander Mann <amann_at_uni-goettingen.de> wrote:
> The reason for this is maybe a different dictionary? (or a different
> Python version used by Athena?)

probably.
Athena is using the LCG official way to create and use dictionaries: the Reflex ones.

what happens if you do:
try:
 import AthenaPython.PyAthena as ROOT
except ImportError:
 import ROOT

PyAthena is trying to load by hook or by crook the correct reflex dictionary (through the same nice getattr method than ROOT.foo)

hth,
sebastien.

-- 
#########################################
# Dr. Sebastien Binet
# Laboratoire de l'Accelerateur Lineaire
# Universite Paris-Sud XI
# Batiment 200
# 91898 Orsay
#########################################

  • application/pgp-signature attachment: stored
Received on Tue Nov 30 2010 - 10:47:03 CET

This archive was generated by hypermail 2.2.0 : Tue Nov 30 2010 - 11:50:01 CET