From 4c4c0e036b5bb8af1981bc0515d5be33f6ac315a Mon Sep 17 00:00:00 2001 From: n3040 Date: Fri, 21 Jan 2022 16:08:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=88=A9=E7=94=A8ng=E7=9A=84bug=E3=80=82=20=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=20Version:=201.2.0.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core.py | 6 +++++- metadata.yml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core.py b/core.py index edf8691..7ad9a0d 100644 --- a/core.py +++ b/core.py @@ -444,7 +444,11 @@ def tangent_line_k(line_x, line_y, center_x, center_y, radius, init_k=10.0): def func_ng(td): # 地闪密度,通过雷暴日计算 - return 0.023 * (td ** 1.3) + if para.ng > 0: + r = para.ng + else: + r = 0.023 * (td ** 1.3) + return r # 圆和地面线的交点,只去正x轴上的。 diff --git a/metadata.yml b/metadata.yml index 6ea90f2..33c60ec 100644 --- a/metadata.yml +++ b/metadata.yml @@ -1,4 +1,4 @@ -Version: 1.2.0 +Version: 1.2.0.2 #CompanyName: My Imaginary Company #FileDescription: Simple App #InternalName: Simple App