Spaces:
Running
Running
Update src/Home.py
Browse files- src/Home.py +13 -3
src/Home.py
CHANGED
|
@@ -64,6 +64,15 @@ def embed_video():
|
|
| 64 |
set_css()
|
| 65 |
embed_video()
|
| 66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
|
| 68 |
# Sidebar with enhanced styling
|
| 69 |
st.sidebar.image("https://raw.githubusercontent.com/manassharma07/PyFock/main/logo_crysx_pyfock.png", use_container_width=True)
|
|
@@ -95,6 +104,7 @@ st.sidebar.markdown("""
|
|
| 95 |
* Compare with PySCF
|
| 96 |
* Download cube files & scripts
|
| 97 |
* Interactive 3D visualization
|
|
|
|
| 98 |
* No installation required!
|
| 99 |
""")
|
| 100 |
|
|
@@ -108,7 +118,7 @@ st.sidebar.markdown("""
|
|
| 108 |
[](https://pypi.org/project/pyfock/)
|
| 109 |
[](https://pyfock-docs.bragitoff.com)
|
| 110 |
|
| 111 |
-
📄 **
|
| 112 |
|
| 113 |
👨💻 **Developer:** [Manas Sharma](https://www.linkedin.com/in/manassharma07)
|
| 114 |
|
|
@@ -498,7 +508,7 @@ with col1:
|
|
| 498 |
|
| 499 |
max_iterations = st.number_input("Max Iterations:", min_value=1, max_value=16, value=14)
|
| 500 |
conv_crit = st.number_input("Convergence Criterion:", min_value=1e-7, max_value=1e-3, value=1e-6, format="%.1e")
|
| 501 |
-
ncores =
|
| 502 |
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.")
|
| 503 |
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.")
|
| 504 |
|
|
@@ -509,7 +519,7 @@ st.header("2. Cube Generation and Visualization Settings")
|
|
| 509 |
col3, col4, col5 = st.columns(3)
|
| 510 |
|
| 511 |
with col3:
|
| 512 |
-
cube_resolution = st.slider("Cube File Resolution (nx=ny=nz):", 30,
|
| 513 |
with col4:
|
| 514 |
isovalue = st.number_input("Isovalue:", 0.0, 1.0, value=0.05, step=0.001, format="%.6f")
|
| 515 |
with col5:
|
|
|
|
| 64 |
set_css()
|
| 65 |
embed_video()
|
| 66 |
|
| 67 |
+
# Set page configuration
|
| 68 |
+
# st.set_page_config(
|
| 69 |
+
# page_title='PyFock GUI - Interactive DFT Calculations',
|
| 70 |
+
# layout='wide',
|
| 71 |
+
# page_icon="⚛️",
|
| 72 |
+
# menu_items={
|
| 73 |
+
# 'About': "PyFock GUI - A web interface for PyFock, a pure Python DFT code with Numba JIT acceleration"
|
| 74 |
+
# }
|
| 75 |
+
# )
|
| 76 |
|
| 77 |
# Sidebar with enhanced styling
|
| 78 |
st.sidebar.image("https://raw.githubusercontent.com/manassharma07/PyFock/main/logo_crysx_pyfock.png", use_container_width=True)
|
|
|
|
| 104 |
* Compare with PySCF
|
| 105 |
* Download cube files & scripts
|
| 106 |
* Interactive 3D visualization
|
| 107 |
+
* Calculate molecular integrals
|
| 108 |
* No installation required!
|
| 109 |
""")
|
| 110 |
|
|
|
|
| 118 |
[](https://pypi.org/project/pyfock/)
|
| 119 |
[](https://pyfock-docs.bragitoff.com)
|
| 120 |
|
| 121 |
+
📄 **Article:** *(coming soon)*
|
| 122 |
|
| 123 |
👨💻 **Developer:** [Manas Sharma](https://www.linkedin.com/in/manassharma07)
|
| 124 |
|
|
|
|
| 508 |
|
| 509 |
max_iterations = st.number_input("Max Iterations:", min_value=1, max_value=16, value=14)
|
| 510 |
conv_crit = st.number_input("Convergence Criterion:", min_value=1e-7, max_value=1e-3, value=1e-6, format="%.1e")
|
| 511 |
+
ncores = 1#st.number_input("Number of Cores:", min_value=1, max_value=8, value=4)
|
| 512 |
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.")
|
| 513 |
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.")
|
| 514 |
|
|
|
|
| 519 |
col3, col4, col5 = st.columns(3)
|
| 520 |
|
| 521 |
with col3:
|
| 522 |
+
cube_resolution = st.slider("Cube File Resolution (nx=ny=nz):", 30, 50, 40)
|
| 523 |
with col4:
|
| 524 |
isovalue = st.number_input("Isovalue:", 0.0, 1.0, value=0.05, step=0.001, format="%.6f")
|
| 525 |
with col5:
|