Skip to content

Commit 6a5a00a

Browse files
committed
Black reformatting
1 parent 7d93a1c commit 6a5a00a

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

src/sasctl/pzmm/write_score_code.py

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -507,15 +507,23 @@ def _viya4_model_load(
507507
pickle_type = pickle_type if pickle_type else "pickle"
508508

509509
if mojo_model:
510-
cls.score_code += f"model = h2o.import_mojo(str(Path(settings.pickle_path" \
511-
f") / {model_file_name}))\n\n"
512-
return f"{'':8}model = h2o.import_mojo(str(Path(settings.pickle_path) / " \
513-
f"{model_file_name}))\n\n"
510+
cls.score_code += (
511+
f"model = h2o.import_mojo(str(Path(settings.pickle_path"
512+
f") / {model_file_name}))\n\n"
513+
)
514+
return (
515+
f"{'':8}model = h2o.import_mojo(str(Path(settings.pickle_path) / "
516+
f"{model_file_name}))\n\n"
517+
)
514518
elif binary_h2o_model:
515-
cls.score_code += f"model = h2o.load(str(Path(settings.pickle_path) / " \
516-
f"{model_file_name}))\n\n"
517-
return f"{'':8}model = h2o.load(str(Path(settings.pickle_path) / " \
518-
f"{model_file_name}))\n\n"
519+
cls.score_code += (
520+
f"model = h2o.load(str(Path(settings.pickle_path) / "
521+
f"{model_file_name}))\n\n"
522+
)
523+
return (
524+
f"{'':8}model = h2o.load(str(Path(settings.pickle_path) / "
525+
f"{model_file_name}))\n\n"
526+
)
519527
else:
520528
cls.score_code += (
521529
f"with open(Path(settings.pickle_path) / "

0 commit comments

Comments
 (0)