Some bug when using python with ROOT

i’m not sure if it’s important in the future
it may cause a error when float,double convert
need update for ROOT.py
see below

/Users/chenxu/software/ROOT/install/lib/ROOT.py:318: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
return _orig_ihook( name, *args, **kwds )

Please provide the following information:


ROOT Version (e.g. 6.12/02):
Platform, compiler (e.g. CentOS 7.3, gcc6.2):


==========================ROOT===============================
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Rint
version: 6.13/01
building time: 20180423 1317
Version time:1511
PlatForm:darwin
OS:mac os
Autoload cx inc of ROOT
sla loaded
WARNING: version mismatch between CFITSIO header (v3.41) and linked library (v3.43).
thetaphi2.0 loaded
thetaphi2.0 loaded
ROBAST loaded
CorsikaIO loaded
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV

Hi @cxwx1,

You get this warning when importing some module inside ROOT? What are you exactly importing?

Cheers,
Enric

Hi

I’m using Python3 with tensorflow1.8, and got this warning

import tensorflow
import numpy
import ROOT
import root_numpy

Hi @cxwx1,
I understand that if you import ROOT only, without the other imports, the warning is not shown?
What is the import that makes the warning appear?

Cheers,
Enric

no warning if use ROOT only
using python3

import tensorflow (version 1.8, compiled from source)

maybe it’s not problem of ROOT.py, I made a mistake. sorry about that

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.