Feat/bb4g (#2)
API CI / api-tests (pull_request) Failing after 41s
CI / test (pull_request) Failing after 40s

Co-authored-by: Tim Lorsbach <tim@lorsba.ch>
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
2026-11-10 10:29:05 +13:00
co-authored by Tim Lorsbach
parent 2e2abf0287
commit ae3a164e74
2 changed files with 16 additions and 9 deletions
+16
View File
@@ -29,6 +29,8 @@ class SamplingAlgorithm(enum.Enum):
class BB4GConfig(EnviPyModel):
sampling_algorithm: SamplingAlgorithm = SamplingAlgorithm.EXACT
cutoff: int = -5
model: str = "rat"
mode: str | None = None
class UI:
title = "BB4G Configuration"
@@ -44,6 +46,18 @@ class BB4GConfig(EnviPyModel):
order=2,
placeholder="If unset defaults to -5"
)
model = UIConfig(
widget=WidgetType.TEXT,
label="BB4G Model",
order=3,
placeholder="If unset defaults to rat"
)
mode = UIConfig(
widget=WidgetType.TEXT,
label="BB4G Mode",
order=4,
placeholder="If unset defaults to None"
)
# Once stable these will be exposed by enviPy-plugins lib
@@ -167,6 +181,8 @@ class BB4G(Classifier):
"smiles": smi,
"sampling_alg": self.config.sampling_algorithm.value,
"cutoff": self.config.cutoff,
"model": self.config.model,
"mode": self.config.mode,
}
retries = 0