Skip to content

Commit

Permalink
initial attempt at publishing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebystrom committed Oct 13, 2024
1 parent ce2d0e4 commit c03ee64
Show file tree
Hide file tree
Showing 22 changed files with 3,106 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
.idea/
.vscode/
build/
docs/_build
docs/_static
docs/xml
functionals/
*__pycache__*
*.egg-info*
Expand All @@ -9,6 +12,7 @@ functionals/
*.npy
*.npz
*.hdf5
*.html
*.pth
*.so
*.o
Expand Down
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ recursive-include ciderpress/lib *.c *.h CMakeLists.txt
recursive-exclude ciderpress/lib *.cl

global-exclude *.py[cod]

# docs
recursive-exclude docs/
22 changes: 21 additions & 1 deletion ciderpress/gpaw/calculator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
#!/usr/bin/env python
# CiderPress: Machine-learning based density functional theory calculations
# Copyright (C) 2024 The President and Fellows of Harvard College
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>
#
# Author: Kyle Bystrom <kylebystrom@gmail.com>
#

import yaml
from gpaw.calculator import GPAW
from gpaw.xc.libxc import LibXC
Expand Down Expand Up @@ -54,7 +74,7 @@ def get_cider_functional(
class is returned to evaluate the semilocal functional.
Args:
mlfunc (MappedXC, str): An ML functional object or a str
mlfunc (MappedXC, MappedXC2, str): An ML functional object or a str
corresponding to the file name of a yaml or joblib file
containing it.
xmix (float, 1.00): Mixing parameter for CIDER exchnange.
Expand Down
20 changes: 20 additions & 0 deletions ciderpress/gpaw/fast_atom_utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
#!/usr/bin/env python
# CiderPress: Machine-learning based density functional theory calculations
# Copyright (C) 2024 The President and Fellows of Harvard College
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>
#
# Author: Kyle Bystrom <kylebystrom@gmail.com>
#

import ctypes

import numpy as np
Expand Down
20 changes: 20 additions & 0 deletions ciderpress/gpaw/fast_paw.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
#!/usr/bin/env python
# CiderPress: Machine-learning based density functional theory calculations
# Copyright (C) 2024 The President and Fellows of Harvard College
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>
#
# Author: Kyle Bystrom <kylebystrom@gmail.com>
#

import ctypes

import numpy as np
Expand Down
20 changes: 20 additions & 0 deletions ciderpress/gpaw/nldf_interface.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
#!/usr/bin/env python
# CiderPress: Machine-learning based density functional theory calculations
# Copyright (C) 2024 The President and Fellows of Harvard College
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>
#
# Author: Kyle Bystrom <kylebystrom@gmail.com>
#

import ctypes

import numpy as np
Expand Down
2 changes: 1 addition & 1 deletion ciderpress/pyscf/dft.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def make_cider_calc(
Args:
ks (pyscf.dft.KohnShamDFT): DFT object
mlfunc (MappedXC or str): CIDER exchange functional or file name
mlfunc (MappedXC, MappedXC2, str): CIDER exchange functional or file name
xmix (float): Fraction of CIDER exchange used.
xc (str or None): If specified, this semi-local XC code is evaluated
and added to the total XC energy.
Expand Down
Loading

0 comments on commit c03ee64

Please sign in to comment.