Skip to content

Commit 873dcf0

Browse files
committed
adding description to r argument
1 parent c8117dc commit 873dcf0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

electronics/star_delta_transform.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
def delta_to_wye(r: list) -> dict:
2222
"""
23+
r is a list with resistor values to be transform from delta to star
24+
2325
>>> delta_to_wye([2.0, 3.0, 4.0])
2426
{'r1': 1.3333333333333333, 'r2': 0.8888888888888888, 'r3': 0.6666666666666666}
2527
"""
@@ -33,6 +35,8 @@ def delta_to_wye(r: list) -> dict:
3335

3436
def wye_to_delta(r: list) -> dict:
3537
"""
38+
r is a list with resistor values to be transform from star to delta
39+
3640
>>> wye_to_delta([2.0, 3.0, 4.0])
3741
{'ra': 13.0, 'rb': 8.666666666666666, 'rc': 6.5}
3842
"""
@@ -60,7 +64,7 @@ def transform(mode: int, r: list) -> dict:
6064
return r_transformed
6165

6266

63-
def get_type_transform():
67+
def get_type_transform() -> int:
6468
mode: int = 0
6569
try:
6670
print("""

0 commit comments

Comments
 (0)