From b935f8421113850f99b6bf92bebf04e183ed4e5f Mon Sep 17 00:00:00 2001 From: "Tristan F." Date: Thu, 23 Oct 2025 15:58:10 -0700 Subject: [PATCH 1/2] chore(config): drop directed setting --- spras/config/config.py | 3 --- spras/config/schema.py | 1 - 2 files changed, 4 deletions(-) diff --git a/spras/config/config.py b/spras/config/config.py index d032e126e..a62649186 100644 --- a/spras/config/config.py +++ b/spras/config/config.py @@ -168,9 +168,6 @@ def process_algorithms(self, raw_config: RawConfig): # Do not parse the rest of the parameters for this algorithm if it is not included continue - if cur_params.directed is not None: - warnings.warn("UPDATE: we no longer use the directed key in the config file", stacklevel=2) - cur_params = cur_params.__pydantic_extra__ if cur_params is None: raise RuntimeError("An internal error occurred: ConfigDict extra should be set on AlgorithmParams.") diff --git a/spras/config/schema.py b/spras/config/schema.py index 2b46aaf1c..f146c7ba2 100644 --- a/spras/config/schema.py +++ b/spras/config/schema.py @@ -103,7 +103,6 @@ class ContainerRegistry(BaseModel): class AlgorithmParams(BaseModel): include: bool - directed: Optional[bool] = None # TODO: use array of runs instead. We currently rely on the # extra parameters here to extract the algorithm parameter information, From 3d2a29d207814de58ab554d1da0b9c19be426a51 Mon Sep 17 00:00:00 2001 From: "Tristan F." Date: Thu, 23 Oct 2025 23:05:56 +0000 Subject: [PATCH 2/2] chore: lint --- spras/config/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spras/config/schema.py b/spras/config/schema.py index f146c7ba2..144e28f60 100644 --- a/spras/config/schema.py +++ b/spras/config/schema.py @@ -11,7 +11,7 @@ """ import re -from typing import Annotated, Optional +from typing import Annotated from pydantic import AfterValidator, BaseModel, ConfigDict, Field