Révision 4fd2e6f0
b/.gitignore | ||
---|---|---|
2 | 2 |
.idea |
3 | 3 |
dockonsurf.log |
4 | 4 |
*.nfs* |
5 |
docs/build/* |
b/docs/Makefile | ||
---|---|---|
1 |
# Minimal makefile for Sphinx documentation |
|
2 |
# |
|
3 |
|
|
4 |
# You can set these variables from the command line, and also |
|
5 |
# from the environment for the first two. |
|
6 |
SPHINXOPTS ?= |
|
7 |
SPHINXBUILD ?= sphinx-build |
|
8 |
SOURCEDIR = source |
|
9 |
BUILDDIR = build |
|
10 |
|
|
11 |
# Put it first so that "make" without argument is like "make help". |
|
12 |
help: |
|
13 |
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
|
14 |
|
|
15 |
.PHONY: help Makefile |
|
16 |
|
|
17 |
# Catch-all target: route all unknown targets to Sphinx using the new |
|
18 |
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). |
|
19 |
%: Makefile |
|
20 |
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
b/docs/make.bat | ||
---|---|---|
1 |
@ECHO OFF |
|
2 |
|
|
3 |
pushd %~dp0 |
|
4 |
|
|
5 |
REM Command file for Sphinx documentation |
|
6 |
|
|
7 |
if "%SPHINXBUILD%" == "" ( |
|
8 |
set SPHINXBUILD=sphinx-build |
|
9 |
) |
|
10 |
set SOURCEDIR=source |
|
11 |
set BUILDDIR=build |
|
12 |
|
|
13 |
if "%1" == "" goto help |
|
14 |
|
|
15 |
%SPHINXBUILD% >NUL 2>NUL |
|
16 |
if errorlevel 9009 ( |
|
17 |
echo. |
|
18 |
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx |
|
19 |
echo.installed, then set the SPHINXBUILD environment variable to point |
|
20 |
echo.to the full path of the 'sphinx-build' executable. Alternatively you |
|
21 |
echo.may add the Sphinx directory to PATH. |
|
22 |
echo. |
|
23 |
echo.If you don't have Sphinx installed, grab it from |
|
24 |
echo.http://sphinx-doc.org/ |
|
25 |
exit /b 1 |
|
26 |
) |
|
27 |
|
|
28 |
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% |
|
29 |
goto end |
|
30 |
|
|
31 |
:help |
|
32 |
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% |
|
33 |
|
|
34 |
:end |
|
35 |
popd |
b/docs/source/about.rst | ||
---|---|---|
1 |
About |
|
2 |
===== |
|
3 |
|
|
4 |
DockOnSurf is a program to automatically find the most stable geometry for molecules |
|
5 |
on surfaces. |
|
6 |
|
|
7 |
webpage: https://forge.cbp.ens-lyon.fr/redmine/projects/dockonsurf |
|
8 |
|
|
9 |
Features |
|
10 |
^^^^^^^^ |
|
11 |
* Generate a handful of adsorbate-surface structures by |
|
12 |
combining: |
|
13 |
* surface sites |
|
14 |
* adsorbate's anchoring points |
|
15 |
* conformers |
|
16 |
* orientations |
|
17 |
* probe dissociation of acidic H |
|
18 |
|
|
19 |
* Guess the direction where to place the adsorbate. |
|
20 |
Useful for nanoparticles or stepped/kinked surfaces. |
|
21 |
|
|
22 |
* Sample different orientations efficiently by using internal angles. |
|
23 |
|
|
24 |
* Detect and correct atomic clashes. |
|
25 |
|
|
26 |
* Optimize the geometry of the generated structures using CP2K or VASP. |
|
27 |
|
|
28 |
* Submit jobs to your computing center and check if they have finished normally. |
|
29 |
|
|
30 |
* Track progress by logging all events on a log file. |
|
31 |
|
|
32 |
* Customize the execution by changing chemically meaningful the edition of a simple input file. |
b/docs/source/conf.py | ||
---|---|---|
1 |
# Configuration file for the Sphinx documentation builder. |
|
2 |
# |
|
3 |
# This file only contains a selection of the most common options. For a full |
|
4 |
# list see the documentation: |
|
5 |
# https://www.sphinx-doc.org/en/master/usage/configuration.html |
|
6 |
|
|
7 |
# -- Path setup -------------------------------------------------------------- |
|
8 |
|
|
9 |
# If extensions (or modules to document with autodoc) are in another directory, |
|
10 |
# add these directories to sys.path here. If the directory is relative to the |
|
11 |
# documentation root, use os.path.abspath to make it absolute, like shown here. |
|
12 |
# |
|
13 |
# import os |
|
14 |
# import sys |
|
15 |
# sys.path.insert(0, os.path.abspath('.')) |
|
16 |
|
|
17 |
|
|
18 |
# -- Project information ----------------------------------------------------- |
|
19 |
|
|
20 |
project = 'DockOnSurf' |
|
21 |
copyright = '2021, Carles Martí' |
|
22 |
author = 'Carles Martí' |
|
23 |
|
|
24 |
# The full version, including alpha/beta/rc tags |
|
25 |
release = '0.0.1' |
|
26 |
|
|
27 |
|
|
28 |
# -- General configuration --------------------------------------------------- |
|
29 |
|
|
30 |
# Add any Sphinx extension module names here, as strings. They can be |
|
31 |
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
|
32 |
# ones. |
|
33 |
extensions = [ |
|
34 |
] |
|
35 |
|
|
36 |
# Add any paths that contain templates here, relative to this directory. |
|
37 |
templates_path = ['_templates'] |
|
38 |
|
|
39 |
# List of patterns, relative to source directory, that match files and |
|
40 |
# directories to ignore when looking for source files. |
|
41 |
# This pattern also affects html_static_path and html_extra_path. |
|
42 |
exclude_patterns = [] |
|
43 |
|
|
44 |
|
|
45 |
# -- Options for HTML output ------------------------------------------------- |
|
46 |
|
|
47 |
# The theme to use for HTML and HTML Help pages. See the documentation for |
|
48 |
# a list of builtin themes. |
|
49 |
# |
|
50 |
html_theme = 'sphinx_rtd_theme' |
|
51 |
|
|
52 |
# Add any paths that contain custom static files (such as style sheets) here, |
|
53 |
# relative to this directory. They are copied after the builtin static files, |
|
54 |
# so a file named "default.css" will overwrite the builtin "default.css". |
|
55 |
html_static_path = ['_static'] |
b/docs/source/contact.rst | ||
---|---|---|
1 |
Contact/Contribute |
|
2 |
================== |
b/docs/source/faqs.rst | ||
---|---|---|
1 |
FAQs |
|
2 |
==== |
b/docs/source/index.rst | ||
---|---|---|
1 |
.. DockOnSurf documentation master file, created by |
|
2 |
sphinx-quickstart on Thu Feb 11 20:09:40 2021. |
|
3 |
You can adapt this file completely to your liking, but it should at least |
|
4 |
contain the root `toctree` directive. |
|
5 |
|
|
6 |
DockOnSurf |
|
7 |
========== |
|
8 |
|
|
9 |
DockOnSurf is a program to automatically find the most stable geometry for molecules |
|
10 |
on surfaces. |
|
11 |
|
|
12 |
Features |
|
13 |
^^^^^^^^ |
|
14 |
* Generate a handful of adsorbate-surface structures by combining: |
|
15 |
|
|
16 |
* surface sites |
|
17 |
* adsorbate's anchoring points |
|
18 |
* conformers |
|
19 |
* orientations |
|
20 |
* probe dissociation of acidic H |
|
21 |
|
|
22 |
* Guess the direction where to place the adsorbate. |
|
23 |
Useful for nanoparticles or stepped/kinked surfaces. |
|
24 |
|
|
25 |
* Sample different orientations efficiently by using internal angles. |
|
26 |
|
|
27 |
* Detect and correct atomic clashes. |
|
28 |
|
|
29 |
* Optimize the geometry of the generated structures using CP2K or VASP. |
|
30 |
|
|
31 |
* Submit jobs to your computing center and check if they have finished normally. |
|
32 |
|
|
33 |
* Track progress by logging all events on a log file. |
|
34 |
|
|
35 |
* Customize the execution by changing chemically meaningful the edition of a simple input file. DockOnSurf is a program to automatically find the most stable geometry for molecules on surfaces. |
|
36 |
|
|
37 |
|
|
38 |
.. toctree:: |
|
39 |
:maxdepth: 2 |
|
40 |
:caption: Contents |
|
41 |
|
|
42 |
about |
|
43 |
installation |
|
44 |
tutorials |
|
45 |
inp_ref_manual |
|
46 |
tips_and_tricks |
|
47 |
faqs |
|
48 |
release_notes |
|
49 |
contact |
|
50 |
license |
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
Indices and tables |
|
55 |
================== |
|
56 |
|
|
57 |
* :ref:`genindex` |
|
58 |
* :ref:`modindex` |
|
59 |
* :ref:`search` |
b/docs/source/inp_ref_manual.rst | ||
---|---|---|
1 |
Input file reference manual |
|
2 |
=========================== |
b/docs/source/installation.rst | ||
---|---|---|
1 |
Installation |
|
2 |
============ |
|
3 |
Download the ``dockonsurf`` directory and place it somewhere in your computer, |
|
4 |
by typing in your terminal: :: |
|
5 |
|
|
6 |
git clone http://forge.cbp.ens-lyon.fr/git/dockonsurf |
|
7 |
|
|
8 |
In order to be able to execute DockOnSurf by simply typing ``dockonsurf.py`` You need |
|
9 |
to add the DockOnSurf directory in your ``PATH``. Assuming you download it in your ``$HOME`` |
|
10 |
directory, add ``$HOME/dockonsurf`` to your ``PATH`` variable by typing: :: |
|
11 |
|
|
12 |
PATH="$PATH:$HOME/dockonsurf/" |
|
13 |
|
|
14 |
If you downloaded it elsewhere, replace ``$HOME`` for the actual path where your DockOnSurf is |
|
15 |
(where you did the ``git clone`` command). |
|
16 |
If you want to permanently add the DockOnSurf directory in your ``PATH`` add |
|
17 |
``PATH="$PATH:$HOME/dockonsurf/"`` at the end of your ``$HOME/.bashrc`` file. |
|
18 |
|
|
19 |
DockOnSurf needs the python libraries listed under **Requirements** to be installed |
|
20 |
and available. The easiest way to do this is with the ``conda`` package and environment |
|
21 |
manager (see https://docs.conda.io/en/latest/). You can alternatively install |
|
22 |
them using pip except from RDKit, which is not available as its core routines are |
|
23 |
written in C. |
|
24 |
|
|
25 |
Requirements |
|
26 |
^^^^^^^^^^^^ |
|
27 |
|
|
28 |
* `Python <http://www.python.org/>`_ >= 3.6 |
|
29 |
* `Matplotlib <https://matplotlib.org>`_ ~= 3.2.1 |
|
30 |
* `NumPy <http://docs.scipy.org/doc/numpy/reference/>`_ >= 1.16.6 |
|
31 |
* `RDKit <https://rdkit.org/>`_ ~= 2019.9.3 |
|
32 |
* `scikit-learn <https://scikit-learn.org/>`_ ~= 0.23.1 |
|
33 |
* `HDBSCAN <https://hdbscan.readthedocs.io/en/latest/basic_hdbscan.html>`_ ~= 0.8.26 |
|
34 |
* `ASE <https://wiki.fysik.dtu.dk/ase/>`_ ~= 3.19.1 |
|
35 |
* `NetworkX <https://networkx.org/>`_ >= 2.4 |
|
36 |
* `python-daemon <https://pypi.org/project/python-daemon/>`_ ~= 2.2.4 |
|
37 |
* `pymatgen <https://pymatgen.org/>`_ ~= 2020.11.11 |
|
38 |
* `pycp2k <https://github.com/SINGROUP/pycp2k>`_ ~= 0.2.2 |
|
39 |
|
|
40 |
For instance, `this is a hyperlink reference <https://odoo.com>`_. |
b/docs/source/license.rst | ||
---|---|---|
1 |
License |
|
2 |
======= |
|
3 |
|
|
4 |
The MIT License (MIT) |
|
5 |
|
|
6 |
Copyright © 2020 Centre National de la Recherche Scientifique <http://www.cnrs.fr/> |
|
7 |
|
|
8 |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
|
9 |
|
|
10 |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
|
11 |
|
|
12 |
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
|
13 |
|
b/docs/source/release_notes.rst | ||
---|---|---|
1 |
Release notes |
|
2 |
============= |
b/docs/source/tips_and_tricks.rst | ||
---|---|---|
1 |
Tips and tricks |
|
2 |
=============== |
b/docs/source/tutorials.rst | ||
---|---|---|
1 |
Tutorials |
|
2 |
========= |
|
3 |
|
|
4 |
Getting started |
|
5 |
^^^^^^^^^^^^^^^ |
Formats disponibles : Unified diff