From c537bd3b55a80b88b50f0d5cc7224111f772ff5c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 24 May 2024 10:55:59 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- heimdallr/utilities/nvidia/smi_parsing.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/heimdallr/utilities/nvidia/smi_parsing.py b/heimdallr/utilities/nvidia/smi_parsing.py index 1d7a922..b0329c4 100644 --- a/heimdallr/utilities/nvidia/smi_parsing.py +++ b/heimdallr/utilities/nvidia/smi_parsing.py @@ -2827,9 +2827,9 @@ def DeviceQuery(self, filter=None): or NVSMI_CLOCK_THROTTLE_REASONS_SW_THERMAL_SLOWDOWN in filter or NVSMI_CLOCK_THROTTLE_REASONS_SYNC_BOOST in filter ): - gpuResults[ - "clocks_throttle" - ] = NvidiaSMI.__GetClocksThrottleReasons(handle) + gpuResults["clocks_throttle"] = ( + NvidiaSMI.__GetClocksThrottleReasons(handle) + ) fbMemoryUsage = {} includeMemoryUsage = False @@ -3268,9 +3268,9 @@ def DeviceQuery(self, filter=None): except NVMLError as err: supportedGraphicsClocks = NvidiaSMI.__handleError(err) - supportMemClock[ - "supported_graphics_clock" - ] = supportedGraphicsClocks + supportMemClock["supported_graphics_clock"] = ( + supportedGraphicsClocks + ) supportedClocks.append(supportMemClock) # jj+=1