Skip to content

Commit 1c217eb

Browse files
AVHoppCopilot
andcommitted
Use values from data instead of hardcoding
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 0b26257 commit 1c217eb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

notebooks/Reaction_Optimization.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,12 @@ def _(
455455
CategoricalParameter(
456456
name="Ligand_Name", values=df["Ligand_Name"].unique(), encoding="OHE"
457457
),
458-
NumericalDiscreteParameter(name="Temp_C", values=[90, 105, 120]),
459-
NumericalDiscreteParameter(name="Concentration", values=[0.057, 0.1, 0.153]),
458+
NumericalDiscreteParameter(
459+
name="Temp_C", values=df["Temp_C"].unique()
460+
),
461+
NumericalDiscreteParameter(
462+
name="Concentration", values=df["Concentration"].unique()
463+
),
460464
]
461465
campaign_ohe = Campaign(
462466
searchspace=SearchSpace.from_product(parameters=ohe_parameters),

0 commit comments

Comments
 (0)