Daniel Holdbrook commited on
Commit
f422c70
·
1 Parent(s): efd9eee

dash updates

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -353,14 +353,14 @@ def Page():
353
 
354
  solara.use_effect(lambda: cleanup, [])
355
  with solara.Row(gap="20px", justify="left", style="margin-top: 20px;"):
356
- with solara.Card("Controls", margin=1, elevation=2, style="width: 400px;"):
357
  solara.Switch(label="Auto Run Simulation", value=running)
358
  solara.SliderInt("Step size", value=step_skip, min=1, max=200)
359
  solara.Markdown(f"**Current Step:** `{step_counter.value}`")
360
  solara.Button("Step Model", on_click=step_model_actions, disabled=running.value, icon_name="mdi-run")
361
  solara.Button("Reset Model", on_click=reset_model, icon_name="mdi-reload")
362
 
363
- with solara.Card("System", margin=1, elevation=2, style="width: 400px;"):
364
  with solara.Column(gap="10px"):
365
  with solara.Row(justify="left"):
366
  solara.Text("Receptor A", style={"min-width": "90px"})
@@ -380,7 +380,7 @@ def Page():
380
  solara.Markdown(f"**Calculated c_bulk:** `{calculate_c_bulk(n_antibodies.value) * 1e9:.2f} nM`")
381
  solara.Button("Apply System Settings", on_click=apply_system_settings, icon_name="mdi-cogs")
382
 
383
- with solara.Card("Antibody Kinetics", margin=1, elevation=2, style={"width": "400px"}):
384
  solara.Text("on/off", style={"font-size": "12px", "font-weight": "normal", "color": "#666", "text-align": "right"})
385
  # Receptor A
386
  with solara.Row(justify="start", gap="10px"):
 
353
 
354
  solara.use_effect(lambda: cleanup, [])
355
  with solara.Row(gap="20px", justify="left", style="margin-top: 20px;"):
356
+ with solara.Card("Controls", margin=1, elevation=2, style="width: 415px;"):
357
  solara.Switch(label="Auto Run Simulation", value=running)
358
  solara.SliderInt("Step size", value=step_skip, min=1, max=200)
359
  solara.Markdown(f"**Current Step:** `{step_counter.value}`")
360
  solara.Button("Step Model", on_click=step_model_actions, disabled=running.value, icon_name="mdi-run")
361
  solara.Button("Reset Model", on_click=reset_model, icon_name="mdi-reload")
362
 
363
+ with solara.Card("System", margin=1, elevation=2, style="width: 415px;"):
364
  with solara.Column(gap="10px"):
365
  with solara.Row(justify="left"):
366
  solara.Text("Receptor A", style={"min-width": "90px"})
 
380
  solara.Markdown(f"**Calculated c_bulk:** `{calculate_c_bulk(n_antibodies.value) * 1e9:.2f} nM`")
381
  solara.Button("Apply System Settings", on_click=apply_system_settings, icon_name="mdi-cogs")
382
 
383
+ with solara.Card("Antibody Kinetics", margin=1, elevation=2, style={"width": "415px"}):
384
  solara.Text("on/off", style={"font-size": "12px", "font-weight": "normal", "color": "#666", "text-align": "right"})
385
  # Receptor A
386
  with solara.Row(justify="start", gap="10px"):