java - Error while using deep copy in python, Jepp -


num = 6 sg=np.empty((num),dtype=object) sg=[0.001,0.002,0.003,0.004,0.005,0.006] sg1=np.empty((num),dtype=object) tempv in range(0,6):     tempt in range(tempv+1,6):         if sg[tempv]==sg[tempt]:             sg[tempt]=sg[tempt]+0.000001 sg1=deepcopy(sg) 

while executing code. exception thrown

jep.jepexception: jep.jepexception: <class 'copy.error'>: un(deep)copyable object of type <class 'jep.pyjnumber'> 


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -