@@ -96,7 +96,7 @@ def __init__(
9696 config = self ._validate_csv_files ()
9797 self ._metadata : InferenceMetadata = InferenceMetadata (config )
9898 self ._chain_metric_info : list [MetricInfo ] = []
99- self . _metric_info_parsed : bool = False
99+
100100 if not self ._is_fixed_param :
101101 self ._check_sampler_diagnostics ()
102102
@@ -224,7 +224,7 @@ def metric_type(self) -> str | None:
224224 if self ._is_fixed_param :
225225 return None
226226
227- if not self ._metric_info_parsed :
227+ if self ._metric_type is None :
228228 self ._parse_metric_info ()
229229
230230 return self ._metric_type
@@ -240,7 +240,7 @@ def inv_metric(self) -> np.ndarray | None:
240240 if self ._is_fixed_param :
241241 return None
242242
243- if not self ._metric_info_parsed :
243+ if self ._metric_type is None :
244244 self ._parse_metric_info ()
245245
246246 if self .metric_type == 'unit_e' :
@@ -257,7 +257,7 @@ def step_size(self) -> np.ndarray | None:
257257 if self ._is_fixed_param :
258258 return None
259259
260- if not self ._metric_info_parsed :
260+ if self ._metric_type is None :
261261 self ._parse_metric_info ()
262262
263263 return self ._step_size
@@ -419,7 +419,6 @@ def _parse_metric_info(self) -> None:
419419 self ._step_size = np .asarray (
420420 [cmi .stepsize for cmi in self ._chain_metric_info ]
421421 )
422- self ._metric_info_parsed = True
423422
424423 def _check_sampler_diagnostics (self ) -> None :
425424 """
0 commit comments