diff --git a/RATapi/controls.py b/RATapi/controls.py index 78b2ff5f..b63193d4 100644 --- a/RATapi/controls.py +++ b/RATapi/controls.py @@ -60,7 +60,7 @@ class Controls(BaseModel, validate_assignment=True, extra="forbid"): numGenerations: int = Field(500, ge=1) # NS nLive: int = Field(150, ge=1) - nMCMC: float = Field(0.0, ge=0.0) + nMCMC: int = Field(0, ge=0) propScale: float = Field(0.1, gt=0.0, lt=1.0) nsTolerance: float = Field(0.1, ge=0.0) # Dream diff --git a/pyproject.toml b/pyproject.toml index 4216b6e2..31b2279f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,6 +8,7 @@ build-backend = 'setuptools.build_meta' [tool.ruff] line-length = 120 +extend-exclude = ["*.ipynb"] [tool.ruff.lint] select = ["E", "F", "UP", "B", "SIM", "I"] diff --git a/tests/test_controls.py b/tests/test_controls.py index b0c33a24..7ace2b40 100644 --- a/tests/test_controls.py +++ b/tests/test_controls.py @@ -553,7 +553,7 @@ def table_str(self): "| resampleParams | [0.9, 50] |\n" "| display | iter |\n" "| nLive | 150 |\n" - "| nMCMC | 0.0 |\n" + "| nMCMC | 0 |\n" "| propScale | 0.1 |\n" "| nsTolerance | 0.1 |\n" "+------------------+-----------+" @@ -670,7 +670,7 @@ def test_set_non_ns_properties(self, wrong_property: str, value: Any) -> None: @pytest.mark.parametrize( "control_property, value, bound", [ - ("nMCMC", -0.6, 0), + ("nMCMC", -1, 0), ("nsTolerance", -500, 0), ("nLive", -500, 1), ],