Skip to content

Commit abf74a1

Browse files
Fix spectral RG-flow config validation syntax (#39)
Repair the malformed max_correction_ratio validation error string so the spectral RG-flow projector package compiles and imports.
2 parents 7a970d0 + 353add6 commit abf74a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • optimizers/spectral_rg_flow_projector/rg_spectral_flow

optimizers/spectral_rg_flow_projector/rg_spectral_flow/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def validate(self) -> None:
4040
"max_abs_log_eigenvalue_correction must be non-negative or None."
4141
)
4242
if self.max_correction_ratio is not None and self.max_correction_ratio < 0.0:
43-
raise ValueError(bmax_correction_ratio must be non-negative or None.")
43+
raise ValueError("max_correction_ratio must be non-negative or None.")
4444
if int(self.min_retained) < 2:
4545
raise ValueError("min_retained must be at least two.")
4646
if int(self.apply_every_steps) < 1:

0 commit comments

Comments
 (0)