ManasSharma07 commited on
Commit
51e1535
·
verified ·
1 Parent(s): 5b6877c

Update src/Home.py

Browse files
Files changed (1) hide show
  1. src/Home.py +24 -15
src/Home.py CHANGED
@@ -65,9 +65,10 @@ st.sidebar.markdown("---")
65
  # Links section
66
  st.sidebar.markdown("### 🔗 Links & Resources")
67
  st.sidebar.markdown("""
68
- [![GitHub](https://img.shields.io/badge/GitHub-Repository-blue?logo=github)](https://github.com/manassharma07/PyFock)
 
69
  [![PyPI](https://img.shields.io/badge/PyPI-Package-orange?logo=pypi)](https://pypi.org/project/pyfock/)
70
- [![Docs](https://img.shields.io/badge/Documentation-Read-green?logo=readthedocs)](https://github.com/manassharma07/PyFock/blob/main/Documentation.md)
71
 
72
  📄 **Paper:** [arXiv preprint](https://arxiv.org) *(coming soon)*
73
 
@@ -79,16 +80,25 @@ st.sidebar.markdown("""
79
  st.sidebar.markdown("---")
80
 
81
  # Installation
82
- with st.sidebar.expander("📦 Installation Instructions"):
83
  st.code("""
 
 
 
 
 
 
 
 
 
 
 
84
  # Install PyFock
85
  pip install pyfock
86
 
87
- # For GPU support
88
- pip install cupy-cuda12x # or appropriate version
89
 
90
- # Install dependencies
91
- pip install pyscf numba numpy scipy
92
  """, language="bash")
93
 
94
  st.sidebar.markdown("---")
@@ -449,9 +459,9 @@ with col1:
449
 
450
  max_iterations = st.number_input("Max Iterations:", min_value=1, max_value=16, value=14)
451
  conv_crit = st.number_input("Convergence Criterion:", min_value=1e-7, max_value=1e-3, value=1e-6, format="%.1e")
452
- ncores = 2#st.number_input("Number of Cores:", min_value=1, max_value=8, value=4)
453
- use_pyscf_grids = st.checkbox("Use PySCF Grids", value=True, help="Use either PySCF grids for both PyFock and PySCF DFT calculation or PyFock grids for both PyFock and PySCF DFT calculaiton. Using PySCF grids is recommended as those are more efficient and also makes the comparison with PySCF consistent.")
454
- compare_pyscf = st.checkbox("Compare with PySCF (may take longer)", value=False, help="Runs a KS-DFT calculation using same settings in PySCF for energy comparison.")
455
 
456
  st.markdown("---")
457
 
@@ -1003,15 +1013,14 @@ else:
1003
 
1004
  ### Notes
1005
 
1006
- - Calculations are limited to ~120 basis functions for Streamlit Cloud
1007
- - Smaller molecules and basis sets will run faster
1008
- - PySCF comparison adds computation time but validates results
1009
- - All calculations use density fitting for efficiency
1010
 
1011
  ### Example Systems
1012
 
1013
  - **Water**: Quick test system (7 basis functions with sto-3g)
1014
- - **Methane**: Small hydrocarbon (9 basis functions with sto-3g)
1015
  - **Benzene**: Aromatic system (42 basis functions with sto-3g)
1016
  """)
1017
 
 
65
  # Links section
66
  st.sidebar.markdown("### 🔗 Links & Resources")
67
  st.sidebar.markdown("""
68
+ [![GitHub (PyFock)](https://img.shields.io/badge/GitHub-Repository-blue?logo=github)](https://github.com/manassharma07/PyFock)
69
+ [![GitHub (PyFock GUI)](https://img.shields.io/badge/GitHub-Repository-blue?logo=github)](https://github.com/manassharma07/PyFock-GUI)
70
  [![PyPI](https://img.shields.io/badge/PyPI-Package-orange?logo=pypi)](https://pypi.org/project/pyfock/)
71
+ [![Docs](https://img.shields.io/badge/Documentation-Read-green?logo=readthedocs)](https://pyfock-docs.bragitoff.com)
72
 
73
  📄 **Paper:** [arXiv preprint](https://arxiv.org) *(coming soon)*
74
 
 
80
  st.sidebar.markdown("---")
81
 
82
  # Installation
83
+ with st.sidebar.expander("📦 Installation Instructions for PyFock"):
84
  st.code("""
85
+ # Install LibXC — required by PyFock
86
+ # For Python < 3.10:
87
+ # Install system LibXC and then install pylibxc2 via pip
88
+ sudo apt-get install libxc-dev # Ubuntu/Debian
89
+ pip install pylibxc2
90
+
91
+ # For Python >= 3.10:
92
+ # pip wheels for pylibxc2 may be unavailable
93
+ # Use conda-forge instead (recommended)
94
+ conda install -c conda-forge pylibxc -y
95
+
96
  # Install PyFock
97
  pip install pyfock
98
 
99
+ # Optional: GPU support
100
+ pip install cupy-cuda12x # choose version appropriate for your CUDA setup
101
 
 
 
102
  """, language="bash")
103
 
104
  st.sidebar.markdown("---")
 
459
 
460
  max_iterations = st.number_input("Max Iterations:", min_value=1, max_value=16, value=14)
461
  conv_crit = st.number_input("Convergence Criterion:", min_value=1e-7, max_value=1e-3, value=1e-6, format="%.1e")
462
+ ncores = 1#st.number_input("Number of Cores:", min_value=1, max_value=8, value=4)
463
+ use_pyscf_grids = st.checkbox("Use PySCF Grids for XC Term", value=True, help="Use either PySCF grids or PyFock grids for DFT calculaiton. Using PySCF grids is recommended as those are relatively smaller. NOTE: This does not perform a PySCF DFT calculation, only grid generation.")
464
+ compare_pyscf = st.checkbox("Compare energy with PySCF (will take longer)", value=False, help="Runs a KS-DFT calculation using same settings in PySCF for energy comparison.")
465
 
466
  st.markdown("---")
467
 
 
1013
 
1014
  ### Notes
1015
 
1016
+ - Calculations are limited to ~120 basis functions when running on cloud. Download the repo and run the streamlit app locally for larger systems.
1017
+ - Smaller molecules and basis sets will run faster.
1018
+ - PySCF comparison adds computation time but validates energy.
1019
+ - All calculations use density fitting (resolution of identity) for efficiency.
1020
 
1021
  ### Example Systems
1022
 
1023
  - **Water**: Quick test system (7 basis functions with sto-3g)
 
1024
  - **Benzene**: Aromatic system (42 basis functions with sto-3g)
1025
  """)
1026