Skip to content

Commit c7c143f

Browse files
committed
style: replace 'is' with '==' to eliminate warnings
1 parent 303b371 commit c7c143f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sasctl/pzmm/write_json_files.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2314,9 +2314,9 @@ def generate_model_card(
23142314
"Only classification and prediction target types are currently accepted."
23152315
)
23162316
if selection_statistic is None:
2317-
if target_type is "classification":
2317+
if target_type == "classification":
23182318
selection_statistic = "_KS_"
2319-
elif target_type is "prediction":
2319+
elif target_type == "prediction":
23202320
selection_statistic = "_ASE_"
23212321
if selection_statistic not in cls.valid_params:
23222322
raise RuntimeError(

0 commit comments

Comments
 (0)