Skip to content

Commit 8b6a211

Browse files
committed
Apply formatting fixes from pre-commit
1 parent eb1e929 commit 8b6a211

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

vec_inf/client/_slurm_script_generator.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ def _generate_server_setup(self) -> str:
121121
server_script.append("\n".join(SLURM_SCRIPT_TEMPLATE["container_setup"]))
122122
server_script.append(
123123
SLURM_SCRIPT_TEMPLATE["bind_path"].format(
124-
model_weights_path=self.model_weights_path if self.model_weights_exists else "",
124+
model_weights_path=self.model_weights_path
125+
if self.model_weights_exists
126+
else "",
125127
additional_binds=self.additional_binds,
126128
)
127129
)
@@ -289,7 +291,9 @@ def _generate_model_launch_script(self, model_name: str) -> Path:
289291
script_content.append(BATCH_MODEL_LAUNCH_SCRIPT_TEMPLATE["container_setup"])
290292
script_content.append(
291293
BATCH_MODEL_LAUNCH_SCRIPT_TEMPLATE["bind_path"].format(
292-
model_weights_path=model_params["model_weights_path"] if model_params.get("model_weights_exists", True) else "",
294+
model_weights_path=model_params["model_weights_path"]
295+
if model_params.get("model_weights_exists", True)
296+
else "",
293297
additional_binds=model_params["additional_binds"],
294298
)
295299
)

0 commit comments

Comments
 (0)