PyDEV + PyROOT

From: OKUMURA, Akira <oxon_at_ceres.phys.s.u-tokyo.ac.jp>
Date: Fri, 6 Feb 2009 01:08:39 +0900


Hello ROOTers,

I am writing a python package using Eclipse with PyDEV plugin. But PyDEV does not understand the all classes/functions/variables in ROOT.

For example, when I type 'ROOT.' in a Eclipse editor window, PyDEV lists completion candidates, but there are only

__all__, __author__, __file__, pseudo__all__, __version__,
_Configuration, _displayhook _excepthook, _ExpandMacroFunction,
_memPolicyAPI, _orig_dhook, _orig_ehook, _processRootEvents, _root,
_sigPoicyAPI, _TTree_iter__, atexit, cleanup, copy_reg, dlflags,
FileNameCompleter, generators, ModuleFacade, needsGlobal, os, PyConfig, pystring, readline, rlcmpleter, split, std, sys, Template, warnings

If I write the following lines in a script from PyDEV

import ROOT
h = ROOT.TH1D("h", "", 100, 0, 1)

it says "Undefined variable from import: TH1D".

How can I make PyDEV recognize all classes/functions/variables of ROOT?

Regards,

OKUMURA, Akira oxon_at_ceres.phys.s.u-tokyo.ac.jp Department of Physics, The University of Tokyo 7-3-1 Hongo, Bunkyo-ku, Tokyo 113-0033
TEL/FAX +81 3-5841-4173/4059
Skype : okumura.akira Received on Thu Feb 05 2009 - 17:08:47 CET

This archive was generated by hypermail 2.2.0 : Thu Feb 05 2009 - 23:50:01 CET