Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
398 changes: 398 additions & 0 deletions .github/copilot-instructions.md

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion apptainer/quantui-local.def
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ FROM: continuumio/miniconda3:latest
scipy \
matplotlib \
plotly \
h5py
h5py \
rdkit

echo "Installing pip packages..."
pip install --no-cache-dir \
Expand All @@ -69,10 +70,12 @@ FROM: continuumio/miniconda3:latest
echo "Verifying installation..."
python -c "import quantui; print('QuantUI OK')"
python -c "import pyscf; print('PySCF OK')"
python -c "import rdkit; print('RDKit OK')"
python -c "import py3Dmol; print('py3Dmol OK')"
python -c "import ase; print('ASE OK')"
python -c "from quantui import optimize_geometry; print('optimize_geometry OK')"
python -c "from quantui import run_freq_calc, run_tddft_calc; print('freq/tddft OK')"
python -c "from quantui.app import QuantUIApp; print('QuantUIApp OK')"

echo "Cleaning up unnecessary files..."
# Version control and caches
Expand Down Expand Up @@ -125,4 +128,5 @@ EOF
python -c "import py3Dmol" || exit 1
python -c "import ase" || exit 1
python -c "from quantui import Molecule; print('Molecule OK')" || exit 1
python -c "from quantui.app import QuantUIApp; print('QuantUIApp OK')" || exit 1
echo "All tests passed!"
1 change: 1 addition & 0 deletions local-setup/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies:
# Scientific computing
- numpy>=1.24.0
- ase>=3.22.0 # Structure I/O, molecule library, geometry optimisation
- rdkit>=2022.03.1 # PubChem SDF→XYZ conversion, SMILES input

# Visualization
- py3dmol>=2.0.0 # Primary 3D molecular viewer
Expand Down
19 changes: 19 additions & 0 deletions notebooks/_inspect_nb.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import json
from pathlib import Path


def main():
notebook_path = Path(__file__).resolve().parent / "molecule_computations.ipynb"
with notebook_path.open(encoding='utf-8') as f:
nb = json.load(f)
print("nbformat: {}.{}".format(nb["nbformat"], nb["nbformat_minor"]))
print("Total cells: {}".format(len(nb["cells"])))
for i, cell in enumerate(nb["cells"]):
cid = cell.get("id", "N/A")
src_preview = "".join(cell["source"])[:70].replace("\n", " ")
tags = cell.get("metadata", {}).get("tags", [])
print(" Cell {}: {} id={} tags={} src={}".format(i, cell["cell_type"], cid, tags, repr(src_preview)))


if __name__ == "__main__":
main()
Loading
Loading