← Back to team overview

yade-users team mailing list archive

Re: [Question #684130]: local variable 'compFricDegree' referenced before assignment

 

Question #684130 on Yade changed:
https://answers.launchpad.net/yade/+question/684130

    Status: Needs information => Answered

Robert Caulk proposed the following answer:
Your line

compFricDegree = 0.95*compFricDegree

inside your compactionFinished() scope, is referencing the local
variable compFricDegree before (during) assignment.

Here you will find your solution [1], specifically the section titled
"scope".

[1]https://sebastianraschka.com/Articles/2014_python_scope_and_namespaces.html

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.