I\'m receiving a Pylint error regarding my constant: MIN_SOIL_PARTICLE_DENS (invalid name).
Any ideas why this constant is wrong? Here\'s my full function:
Few simple rules :
UPPER_CASE letters only and should be defined at the module levelCamelCase letterslower_case and should be defined inside function, classes etc.Now lets talk about your case,
MIN_SOIL_PARTICLE_DENS is defined inside a function and should have lower letters only. Thus instead of considering MIN_SOIL_PARTICLE_DENS as a constant, pylint considers it as a variable here and hence the pylint error.
Pylint Tutorial