style: Fix line formatting issues

This commit is contained in:
Vito Sansevero
2025-06-14 15:25:45 -07:00
parent 1ab839c58c
commit bc7608f891
3 changed files with 12 additions and 18 deletions
+4 -12
View File
@@ -156,9 +156,7 @@ class SamplerComboNode(ComfyAssetsBaseNode):
Returns:
Dictionary with min, max, and default steps
"""
min_steps, max_steps, default_steps = get_recommended_steps_range(
sampler_name
)
min_steps, max_steps, default_steps = get_recommended_steps_range(sampler_name)
return {
"min": min_steps,
"max": max_steps,
@@ -204,12 +202,8 @@ class SamplerComboNode(ComfyAssetsBaseNode):
"scheduler": scheduler,
"steps": steps,
"cfg": cfg,
"valid": validate_sampler_settings(
sampler_name, scheduler, steps, cfg
),
"scheduler_suggestions": self.get_scheduler_suggestions(
sampler_name
),
"valid": validate_sampler_settings(sampler_name, scheduler, steps, cfg),
"scheduler_suggestions": self.get_scheduler_suggestions(sampler_name),
"steps_rec": self.get_steps_recommendation(sampler_name),
"cfg_rec": self.get_cfg_recommendation(sampler_name),
}
@@ -220,9 +214,7 @@ class SamplerComboNode(ComfyAssetsBaseNode):
# Add performance assessment
steps_rec = self.get_steps_recommendation(sampler_name)
analysis["steps_optimal"] = (
steps_rec["min"] <= steps <= steps_rec["max"]
)
analysis["steps_optimal"] = steps_rec["min"] <= steps <= steps_rec["max"]
cfg_rec = self.get_cfg_recommendation(sampler_name)
analysis["cfg_optimal"] = cfg_rec["min"] <= cfg <= cfg_rec["max"]
-1
View File
@@ -107,7 +107,6 @@ def filter_duplicate_seeds(
return False
current_time = time.time() * 1000 # Convert to milliseconds
dedup_window_sec = dedup_window_ms / 1000.0
# Check most recent entry for duplicates within window
latest_entry = history[0]
@@ -35,9 +35,10 @@ class WidthHeightSelectorNode(ComfyAssetsBaseNode):
preset_keys,
{
"default": "custom",
"tooltip": "Select from optimized resolution presets or use custom dimensions. "
"SDXL presets are ~1MP, FLUX presets are higher resolution, "
"Ultra-wide presets support modern aspect ratios.",
"tooltip": "Select from optimized resolution presets or use "
"custom dimensions. SDXL presets are ~1MP, FLUX presets are "
"higher resolution, Ultra-wide presets support modern "
"aspect ratios.",
},
),
"width": (
@@ -48,7 +49,8 @@ class WidthHeightSelectorNode(ComfyAssetsBaseNode):
"max": 8192,
"step": 8,
"tooltip": "Custom width in pixels (must be multiple of 8). "
"Used when preset is 'custom' or as fallback for invalid presets.",
"Used when preset is 'custom' or as fallback for invalid "
"presets.",
},
),
"height": (
@@ -59,7 +61,8 @@ class WidthHeightSelectorNode(ComfyAssetsBaseNode):
"max": 8192,
"step": 8,
"tooltip": "Custom height in pixels (must be multiple of 8). "
"Used when preset is 'custom' or as fallback for invalid presets.",
"Used when preset is 'custom' or as fallback for invalid "
"presets.",
},
),
}