@@ -10,27 +10,41 @@ class EvaluationError(ClusxError):
1010
1111
1212class ClusterIntegrityError (ClusxError ):
13- """Error raised when a cluster assignments file has integrity issues.
13+ """
14+ Error raised when a cluster assignments file has integrity issues.
1415
1516 This error indicates that the cluster assignments file is corrupted,
1617 was created with errors, or is missing critical information needed
1718 for further processing.
19+
20+ See Also
21+ --------
22+ :class:`MissingClusterColumnError`, :class:`MissingParametersError`
1823 """
1924
2025
2126class MissingClusterColumnError (ClusterIntegrityError ):
22- """Error raised when a cluster assignments file is missing the cluster column.
27+ """
28+ Error raised when a cluster assignments file is missing the cluster column.
2329
2430 This error indicates that the file does not contain a column that starts with
2531 ``Cluster_`` (such as Cluster_PYP or Cluster_DP), which is required for identifying
2632 cluster assignments.
33+
34+ See Also
35+ --------
36+ ClusterIntegrityError : Parent class for integrity errors
37+ MissingParametersError : Related error for missing parameters
2738 """
2839
2940 def __init__ (self , file_path : str ):
30- """Initialize the error with the path to the problematic file.
41+ """
42+ Initialize the error with the path to the problematic file.
3143
32- Args:
33- file_path: Path to the file missing the cluster column
44+ Parameters
45+ ----------
46+ file_path : str
47+ Path to the file missing the cluster column
3448 """
3549 self .file_path = file_path
3650 message = (
@@ -42,18 +56,35 @@ def __init__(self, file_path: str):
4256
4357
4458class MissingParametersError (ClusterIntegrityError ):
45- """Error raised when a cluster assignments file is missing required parameters.
59+ """
60+ Error raised when a cluster assignments file is missing required parameters.
4661
4762 This error indicates that the file is missing one or more of the required
4863 parameters (alpha, sigma, variance) needed for further processing.
64+
65+ Parameters
66+ ----------
67+ file_path : str
68+ Path to the file with missing parameters
69+ missing_params : list[str]
70+ List of parameter names that are missing
71+
72+ See Also
73+ --------
74+ ClusterIntegrityError : Parent class for integrity errors
75+ MissingClusterColumnError : Related error for missing cluster columns
4976 """
5077
5178 def __init__ (self , file_path : str , missing_params : list [str ]):
52- """Initialize the error with the path to the problematic file and missing parameters.
53-
54- Args:
55- file_path: Path to the file with missing parameters
56- missing_params: List of parameter names that are missing
79+ """
80+ Initialize the error with the path to the problematic file and missing parameters.
81+
82+ Parameters
83+ ----------
84+ file_path : str
85+ Path to the file with missing parameters
86+ missing_params : list[str]
87+ List of parameter names that are missing
5788 """ # noqa: E501
5889 self .file_path = file_path
5990 self .missing_params = missing_params
0 commit comments