Skip to content

Commit aefd430

Browse files
committed
Format Cosmos3 world-model files
Apply the repository Ruff formatter to resolve CI formatting findings. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 997ab62c-69cb-4802-a5c6-fddd51bfd583 Signed-off-by: Xiaoyu Zhang <xiaoyuzhang@microsoft.com>
1 parent 2232e6d commit aefd430

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/mobius/_cosmos3_edge_world_model.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,7 @@ def build_cosmos3_edge_world_model(
240240
negative_prompt_asset = "assets/negative_prompt.json"
241241
i2v_prompt: dict[str, Any] = {
242242
"positive": "json_or_text",
243-
"negative_default": (
244-
"asset" if negative_prompt_asset in assets else "empty"
245-
),
243+
"negative_default": ("asset" if negative_prompt_asset in assets else "empty"),
246244
"add_resolution_template": False,
247245
"add_duration_template": False,
248246
"use_system_prompt": False,

src/mobius/_cosmos3_world_model_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,9 +488,7 @@ def test_manifest_carries_generation_and_pipeline_config(tmp_path) -> None:
488488
"use_karras_sigmas",
489489
]
490490
video_handoff = package.manifest.metadata["conditioning_handoffs"]["video"]
491-
assert video_handoff["parameters"]["channel_order"] == (
492-
"patch_height_patch_width_channel"
493-
)
491+
assert video_handoff["parameters"]["channel_order"] == ("patch_height_patch_width_channel")
494492
assert package.manifest.metadata["profile"] == "world-model"
495493
assert package.manifest.metadata["model_type"] == "cosmos3_edge"
496494
assert package.manifest.metadata["source"] == "example/world-4Step"

0 commit comments

Comments
 (0)