Skip to content

Commit 6e38f14

Browse files
committed
Reorder PreparationReport methods: put get_tree after get_variable_statistics
1 parent 3f0f825 commit 6e38f14

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

khiops/core/analysis_results.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -561,26 +561,6 @@ def __init__(self, json_data=None):
561561
self.trees.append(tree)
562562
self._trees_by_name[tree.name] = tree
563563

564-
def get_tree(self, tree_name):
565-
"""Returns the tree with the specified name
566-
567-
Parameters
568-
----------
569-
tree_name : str
570-
Name of the tree.
571-
572-
Returns
573-
-------
574-
`Tree`
575-
The tree which has the specified name.
576-
577-
Raises
578-
------
579-
`KeyError`
580-
If no tree with the specified name exists.
581-
"""
582-
return self._trees_by_name[tree_name]
583-
584564
def get_variable_names(self):
585565
"""Returns the names of the variables analyzed during the preparation
586566
@@ -611,6 +591,26 @@ def get_variable_statistics(self, variable_name):
611591
"""
612592
return self._variables_statistics_by_name[variable_name]
613593

594+
def get_tree(self, tree_name):
595+
"""Returns the tree with the specified name
596+
597+
Parameters
598+
----------
599+
tree_name : str
600+
Name of the tree.
601+
602+
Returns
603+
-------
604+
`Tree`
605+
The tree which has the specified name.
606+
607+
Raises
608+
------
609+
`KeyError`
610+
If no tree with the specified name exists.
611+
"""
612+
return self._trees_by_name[tree_name]
613+
614614
def to_dict(self):
615615
"""Transforms this instance to a dict with the Khiops JSON file structure"""
616616
report_summary = {

0 commit comments

Comments
 (0)