Pylint无效的常量名称
- 论坛
- Pylint无效的常量名称
7 浏览
Pylint无效的常量名称
我收到了一个关于我的常量MIN_SOIL_PARTICLE_DENS
(无效名称)的Pylint错误。有任何想法为什么这个常量是错的吗?这是我的完整函数:
def bulk_density(clay, sand, organic_matter): MIN_SOIL_PARTICLE_DENS = 2.65 x1 = (0.078 + 0.278 * sand + 0.034 * clay + 0.022 * organic_matter - 0.018 * sand * organic_matter - 0.027 * clay * organic_matter - 0.584 * sand * clay) x2 = -0.107 + 1.636 * x1 field_capacity = vol_water_content_33_j_kg(clay, sand, organic_matter)#m3/m3 sat_water_content = 0.043 + field_capacity + x2 - 0.097 * sand return (1 - sat_water_content) * MIN_SOIL_PARTICLE_DENS