From ae3a164e74366620d2dd5fbdcad6022c4acb4b6a Mon Sep 17 00:00:00 2001
From: jebus
Date: Tue, 10 Nov 2026 10:29:05 +1300
Subject: [PATCH] Feat/bb4g (#2)
Co-authored-by: Tim Lorsbach
Reviewed-on: https://git.envipath.com/jebus/enviPy-bayer/pulls/2
---
bb4g/__init__.py | 16 ++++++++++++++++
templates/index/index.html | 9 ---------
2 files changed, 16 insertions(+), 9 deletions(-)
diff --git a/bb4g/__init__.py b/bb4g/__init__.py
index 4c93cd8f..c7bd4f83 100644
--- a/bb4g/__init__.py
+++ b/bb4g/__init__.py
@@ -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
diff --git a/templates/index/index.html b/templates/index/index.html
index 0df2b502..9fd62692 100644
--- a/templates/index/index.html
+++ b/templates/index/index.html
@@ -283,15 +283,6 @@
{{ ne.content }}
-
-
- Read Full
-
-
{% endfor %}