From b2a0c5a215fd5886cf5503f0de2d72cc79f2b69d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Efra=C3=ADn=20D=C3=ADaz?= Date: Mon, 7 Sep 2020 15:49:59 -0700 Subject: [PATCH] proposed bug fix for append syntax run.syringe.append and run.cell.append syntax throw error when trying to run python2 setup.py build && python2 setup.py install. Updated syntax to match syntax for adding items to dictionaries. --- .../acetyl-pepstatin/acetyl-pepstatin.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/examples/two-component-binding/acetyl-pepstatin/acetyl-pepstatin.py b/examples/two-component-binding/acetyl-pepstatin/acetyl-pepstatin.py index 99e6314b..841bb717 100644 --- a/examples/two-component-binding/acetyl-pepstatin/acetyl-pepstatin.py +++ b/examples/two-component-binding/acetyl-pepstatin/acetyl-pepstatin.py @@ -19,20 +19,19 @@ run = Run() run.title = "Direct titration of acetyl pepstatin" -run.syringe.append('acetyl pepstatin' : 200 * Units.uM) -run.cell.append('HIV-1 protease' : 20 * Units.uM) +run.syringe['acetyl pepstatin'] = 200 * Units.uM +run.cell['HIV-1 protease'] = 20 * Units.uM run.injection_volume = 10 * Units.uL run.heat_per_injection = [7.347, 7.219, 7.024, 6.537, 5.470, 3.911, 2.258, 1.231, 0.744, 0.497, 0.302, 0.160, 0.087, 0.062, 0.062, 0.040, 0.017, -0.013, -0.013] experiment.runs.append(run) run = Run() run.title = "Competition of acetyl pepstatin by KNI-764" -run.syringe.append('KNI-764' : 250 * Units.uM) -run.cell.append('HIV-1 protease' : 20 * Units.uM) -run.cell.append('acetyl pepstatin' : 200 * Units.uM) +run.syringe['KNI-764'] = 250 * Units.uM +run.cell['HIV-1 protease'] = 20 * Units.uM +run.cell['acetyl pepstatin'] = 200 * Units.uM run.injection_volume = 10 * Units.uL experiment.runs.append(run) # Run the analysis. analyze(experiment) -