diff --git a/examples/source_measure_units/2400/smu_2450_solar_cell.py b/examples/source_measure_units/2400/smu_2450_solar_cell.py index f533ce6e..ff985938 100644 --- a/examples/source_measure_units/2400/smu_2450_solar_cell.py +++ b/examples/source_measure_units/2400/smu_2450_solar_cell.py @@ -69,12 +69,9 @@ power = voltage * current print("Voltage: ", voltage, "Current: ", current, "Power: ", power) - if current > imax: - imax = current - if power > pmax: - pmax = power - if voltage > vmax: - vmax = voltage + imax = max(imax, current) + pmax = max(pmax, power) + vmax = max(vmax, voltage) if abs(current) < abs(MIN_CURR): voc = voltage diff --git a/pyproject.toml b/pyproject.toml index 2c37890c..83574585 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -195,6 +195,8 @@ disable = [ "global-statement", # caught by ruff "line-too-long", # caught by ruff "locally-disabled", # allowed + "missing-class-docstring", # caught by ruff + "missing-module-docstring", # caught by ruff "no-member", # caught by pyright "protected-access", # caught by ruff "raise-missing-from", # caught by ruff