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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -