ManasSharma07 commited on
Commit
5109625
·
verified ·
1 Parent(s): f675acd

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +3 -3
src/streamlit_app.py CHANGED
@@ -751,7 +751,7 @@ def get_animated_trajectory_viz(trajectory, style='stick', show_unit_cell=True,
751
 
752
 
753
  # Streamlit implementation example
754
- def display_optimization_trajectory(trajectory, viz_style='stick'):
755
  """
756
  Display optimization trajectory in Streamlit with controls
757
  """
@@ -767,7 +767,7 @@ def display_optimization_trajectory(trajectory, viz_style='stick'):
767
  with col1:
768
  viz_mode = st.selectbox(
769
  "Visualization Mode",
770
- ["Static with paths", "Animation", "Step-by-step"],
771
  key="viz_mode"
772
  )
773
 
@@ -1300,7 +1300,7 @@ if atoms is not None:
1300
  try:
1301
  # Read trajectory and convert to XYZ
1302
  trajectory = read(traj_filename, index=':') # Read all frames
1303
- display_optimization_trajectory(trajectory, "Animation")
1304
 
1305
  # Create XYZ content
1306
  trajectory_xyz = ""
 
751
 
752
 
753
  # Streamlit implementation example
754
+ def display_optimization_trajectory(trajectory, viz_style='ball-stick'):
755
  """
756
  Display optimization trajectory in Streamlit with controls
757
  """
 
767
  with col1:
768
  viz_mode = st.selectbox(
769
  "Visualization Mode",
770
+ ["Animation", "Static with paths", "Step-by-step"],
771
  key="viz_mode"
772
  )
773
 
 
1300
  try:
1301
  # Read trajectory and convert to XYZ
1302
  trajectory = read(traj_filename, index=':') # Read all frames
1303
+ display_optimization_trajectory(trajectory, "ball-stick")
1304
 
1305
  # Create XYZ content
1306
  trajectory_xyz = ""