We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 43c3da8 + e567e7c commit de1d61aCopy full SHA for de1d61a
1 file changed
LabelGenerator.py
@@ -347,6 +347,9 @@ def draw_resistor_colorcode(
347
num_codes: int,
348
tolerance_value: Optional[float],
349
) -> None:
350
+ # Only display resistors that can accurately represent the given value
351
+ if value.ohms_val % (10 ** (4 - num_codes)):
352
+ return
353
354
resistance_values: List[int] = []
355
for i in range(num_codes-1):
0 commit comments