Personal AI, On Personal Devices
Python
style: ruff line-length + import fixes for #340 and #202
krypticmousee087773b3688
diff --git a/src/openjarvis/agents/executor.py b/src/openjarvis/agents/executor.pyindex cc60c6a7..3feed1d3 100644--- a/src/openjarvis/agents/executor.py+++ b/src/openjarvis/agents/executor.py@@ -322,7 +322,10 @@ class AgentExecutor:# adapters) that aren't in the static ToolRegistry. Without this,# agents declaring MCP-discovered tools in their template would# silently fall back to natives only.- if self._system is not None and getattr(self._system, "tool_executor", None) is not None:+ if (+ self._system is not None+ and getattr(self._system, "tool_executor", None) is not None+ ):mcp_pool = getattr(self._system.tool_executor, "_tools", {}) or {}existing = {t.spec.name for t in tool_instances}for tname in tool_names:diff --git a/src/openjarvis/telemetry/gpu_monitor.py b/src/openjarvis/telemetry/gpu_monitor.pyindex 82dbfbb1..23927db9 100644--- a/src/openjarvis/telemetry/gpu_monitor.py+++ b/src/openjarvis/telemetry/gpu_monitor.py@@ -52,12 +52,22 @@ GPU_SPECS: Dict[str, GpuHardwareSpec] = {"Arc B580": GpuHardwareSpec(tflops_fp16=196, bandwidth_gb_s=456, tdp_watts=190),"Arc B570": GpuHardwareSpec(tflops_fp16=136, bandwidth_gb_s=380, tdp_watts=150),# NVIDIA Jetson- "Jetson Orin NX 16GB": GpuHardwareSpec(tflops_fp16=50, bandwidth_gb_s=102, tdp_watts=25),- "Jetson Orin NX 8GB": GpuHardwareSpec(tflops_fp16=25, bandwidth_gb_s=68, tdp_watts=15),- "Jetson AGX Orin": GpuHardwareSpec(tflops_fp16=108, bandwidth_gb_s=204, tdp_watts=60),+ "Jetson Orin NX 16GB": GpuHardwareSpec(+ tflops_fp16=50, bandwidth_gb_s=102, tdp_watts=25+ ),+ "Jetson Orin NX 8GB": GpuHardwareSpec(+ tflops_fp16=25, bandwidth_gb_s=68, tdp_watts=15+ ),+ "Jetson AGX Orin": GpuHardwareSpec(+ tflops_fp16=108, bandwidth_gb_s=204, tdp_watts=60+ ),# Qualcomm- "Snapdragon X Elite": GpuHardwareSpec(tflops_fp16=4.6, bandwidth_gb_s=136, tdp_watts=80),- "Snapdragon X Plus": GpuHardwareSpec(tflops_fp16=3.8, bandwidth_gb_s=136, tdp_watts=80),+ "Snapdragon X Elite": GpuHardwareSpec(+ tflops_fp16=4.6, bandwidth_gb_s=136, tdp_watts=80+ ),+ "Snapdragon X Plus": GpuHardwareSpec(+ tflops_fp16=3.8, bandwidth_gb_s=136, tdp_watts=80+ ),}diff --git a/tests/telemetry/test_gpu_monitor.py b/tests/telemetry/test_gpu_monitor.pyindex 40aa2b1a..9ba6dfc5 100644--- a/tests/telemetry/test_gpu_monitor.py+++ b/tests/telemetry/test_gpu_monitor.py@@ -10,7 +10,6 @@ from unittest.mock import MagicMock, patchimport pytest-# ---------------------------------------------------------------------------# Helpers: build a fake pynvml module# ---------------------------------------------------------------------------