From 7c3eeffaf77e909a0b615359697bb79fd965d506 Mon Sep 17 00:00:00 2001 From: Fabian Zills Date: Wed, 13 Nov 2024 10:24:51 +0100 Subject: [PATCH] update stress-testing script to set `delay_between_calls` --- examples/stress_testing.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/stress_testing.py b/examples/stress_testing.py index 58704abe..db0f80cf 100644 --- a/examples/stress_testing.py +++ b/examples/stress_testing.py @@ -1,13 +1,17 @@ import tqdm from rdkit2ase import smiles2conformers +import uuid +import datetime #### Import ZnDraw #### from zndraw import ZnDraw -vis = ZnDraw(url="https://zndraw.icp.uni-stuttgart.de/", token="6b1d9f77") +vis = ZnDraw(url="https://zndraw.icp.uni-stuttgart.de/", token=uuid.uuid4().hex) #### ------------- #### -conformers = smiles2conformers("CCCCCCCCCO", numConfs=100) +vis._refresh_client.delay_between_calls = datetime.timedelta(milliseconds=10) + +conformers = smiles2conformers("CCCCCCCCCO", numConfs=1000) # append for atoms in tqdm.tqdm(conformers, desc="append", ncols=80):