linerate 2.1.2__py3-none-any.whl → 2.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- linerate/solver.py +5 -1
- {linerate-2.1.2.dist-info → linerate-2.1.3.dist-info}/METADATA +1 -1
- {linerate-2.1.2.dist-info → linerate-2.1.3.dist-info}/RECORD +6 -6
- {linerate-2.1.2.dist-info → linerate-2.1.3.dist-info}/WHEEL +0 -0
- {linerate-2.1.2.dist-info → linerate-2.1.3.dist-info}/licenses/LICENSE +0 -0
- {linerate-2.1.2.dist-info → linerate-2.1.3.dist-info}/top_level.txt +0 -0
linerate/solver.py
CHANGED
|
@@ -61,7 +61,8 @@ def bisect(
|
|
|
61
61
|
elif isinstance(invalid_mask, bool) and invalid_mask:
|
|
62
62
|
return _invalid_value
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
nan_mask = np.isnan(f_left) | np.isnan(f_right)
|
|
65
|
+
while interval > tolerance and not np.all(nan_mask):
|
|
65
66
|
xmid = 0.5 * (xmax + xmin)
|
|
66
67
|
interval *= 0.5
|
|
67
68
|
f_mid = f(xmid)
|
|
@@ -72,7 +73,10 @@ def bisect(
|
|
|
72
73
|
f_left = np.where(mask, f_mid, f_left)
|
|
73
74
|
f_right = np.where(mask, f_right, f_mid)
|
|
74
75
|
|
|
76
|
+
nan_mask = np.isnan(f_left) | np.isnan(f_right)
|
|
77
|
+
|
|
75
78
|
out = np.where(invalid_mask, _invalid_value, 0.5 * (xmax + xmin))
|
|
79
|
+
out = np.where(nan_mask, np.nan, out)
|
|
76
80
|
return out
|
|
77
81
|
|
|
78
82
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: linerate
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.3
|
|
4
4
|
Summary: Library for computing line ampacity ratings for overhead lines
|
|
5
5
|
Author-email: Statnett Datascience <Datascience.Drift@Statnett.no>, Yngve Mardal Moe <yngve.m.moe@gmail.com>
|
|
6
6
|
Requires-Python: >=3.9
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
linerate/__init__.py,sha256=456XlD7NFaT6nTM5k8qYpaf2Bg2ITYhh5wzL0CQRiDc,221
|
|
2
2
|
linerate/model.py,sha256=SUj4NunXdCctezpGeS62OQNmFGf5IKO2plYQlsGJLow,651
|
|
3
3
|
linerate/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
linerate/solver.py,sha256=
|
|
4
|
+
linerate/solver.py,sha256=OaaTUBii7pTPTQMqpePNRhheSpLCOd0zjkspuaeUads,6665
|
|
5
5
|
linerate/types.py,sha256=HEon3gQU0dX0ZtTxhs4kOhL3jTamXoC3oBtX5b2-Piw,7595
|
|
6
6
|
linerate/units.py,sha256=nNU9SQ-eeUCtmbttKZ9IlNzomF8wwUPPwmixXjfvKhI,1476
|
|
7
7
|
linerate/equations/__init__.py,sha256=cNvISWCp5TbXv4gZ8SWPf0pICRpwDzLSaOxYy5lftsU,464
|
|
@@ -30,8 +30,8 @@ linerate/models/cigre207.py,sha256=FqeSkVzcsf8YIPuyxN0o3svrEp73vIAb42ylnQU_pBQ,5
|
|
|
30
30
|
linerate/models/cigre601.py,sha256=HuwAEsRtWdN5oG0AZqCISnww8ILFGdvk8IfrzLQ_nf0,7508
|
|
31
31
|
linerate/models/ieee738.py,sha256=0o1rEjHhHUgCaK0PyBHBXvFCDs-c9HIF91uUP-VaLAg,4291
|
|
32
32
|
linerate/models/thermal_model.py,sha256=SUeUrjxJaV4muoAiYNR-Ne-1vQspWCPsoJys6bP6pP8,10997
|
|
33
|
-
linerate-2.1.
|
|
34
|
-
linerate-2.1.
|
|
35
|
-
linerate-2.1.
|
|
36
|
-
linerate-2.1.
|
|
37
|
-
linerate-2.1.
|
|
33
|
+
linerate-2.1.3.dist-info/licenses/LICENSE,sha256=HDUtv1ujna13BmYSP7JtGGsG5kGPAaZY2C2qJrANAOo,1059
|
|
34
|
+
linerate-2.1.3.dist-info/METADATA,sha256=EuetzmcfrIbkOFT7LHUXdlOZMHeqAg6plaR3ujXPlD8,4285
|
|
35
|
+
linerate-2.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
36
|
+
linerate-2.1.3.dist-info/top_level.txt,sha256=xHXGAzhQ04AqJCM-MG30tP_me8vBQ9PMlRWsbMLJdgE,9
|
|
37
|
+
linerate-2.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|