Skip to content

Commit 4625d45

Browse files
committed
removing training comma in irissimplified report
1 parent 71ce016 commit 4625d45

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

khiops/core/coclustering_results.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
module look at their ``to_dict`` methods which write Python dictionaries in the
4242
same format as the Khiops JSON reports.
4343
"""
44+
4445
import io
4546
import warnings
4647

@@ -432,7 +433,7 @@ def __init__(self, json_data=None):
432433
# Check minimum consistency of input data
433434
if "cellFrequencies" not in json_data:
434435
raise KhiopsJSONError(
435-
"'cellFrequencies' key not found " "but 'cellPartIndexes' found."
436+
"'cellFrequencies' key not found but 'cellPartIndexes' found."
436437
)
437438
json_cell_frequencies = json_data["cellFrequencies"]
438439
json_cell_part_indexes = json_data["cellPartIndexes"]
@@ -919,7 +920,7 @@ def init_partition(self, json_data=None):
919920
# Initialize open interval flags
920921
first_interval = self.parts[0]
921922
if first_interval.is_missing:
922-
if len(json_data["intervals"]) < 2:
923+
if len(self.parts) < 2:
923924
raise KhiopsJSONError(
924925
"'intervals' key must have at least 2 elements "
925926
"when one element contains missing values."
@@ -948,7 +949,6 @@ def init_partition(self, json_data=None):
948949

949950
# Instance-variable coclustering: initialize inner variables
950951
if self.is_variable_part:
951-
952952
# Create inner variables dimensions (subpartition)
953953
if "innerVariables" not in json_data:
954954
raise KhiopsJSONError("'innerVariables' key not found")

tests/resources/coclustering_results/ref_json_reports/IrisSimplified.khcj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,5 +165,5 @@
165165
150
166166
]
167167
},
168-
"khiops_encoding": "ascii",
169-
}
168+
"khiops_encoding": "ascii"
169+
}

0 commit comments

Comments
 (0)