Skip to content

Commit

Permalink
Merge pull request #35 from wolearyc/dev
Browse files Browse the repository at this point in the history
0.5.0
  • Loading branch information
wolearyc authored Oct 3, 2024
2 parents 89355f3 + fb26028 commit 8404456
Show file tree
Hide file tree
Showing 69 changed files with 971 additions and 300 deletions.
3 changes: 2 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ updates:
directory: "/"
schedule:
interval: weekly
target-branch: "dev"
groups:
python-packages:
patterns:
- "*"
exclude-patterns:
- "*torch*"

- package-ecosystem: github-actions
directory: "/"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
pip install uv
uv pip install ${{ matrix.uv-arg }} --system -r deps/dev_requirements.txt
uv pip install ${{ matrix.uv-arg }} --system -r deps/requirements.txt
uv pip install ${{ matrix.uv-arg }} --system -r deps/pymatgen_requirements.txt
uv pip install ${{ matrix.uv-arg }} --system -r deps/torch_geometric_requirements.txt
uv pip install ${{ matrix.uv-arg }} --system -r deps/torch_requirements.txt
uv pip install ${{ matrix.uv-arg }} --system --no-index -r deps/torch_extra_requirements.txt
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -269,3 +269,4 @@ test/data/temp
test/data/temp.vasp
docs/source/notebooks/*POSCAR
test/Testing.ipynb
test/data/scratch/*
1 change: 1 addition & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ python:
install:
- requirements: docs/requirements.txt
- requirements: deps/requirements.txt
- requirements: deps/pymatgen_requirements.txt
- requirements: deps/torch_requirements.txt
- requirements: deps/torch_geometric_requirements.txt
- requirements: deps/torch_extra_requirements.txt
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ $ pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.4.0
$ pip install ramannoodle[torch]
```

## Documentation
Ramannoodle includes interfaces with [pymatgen](https://pymatgen.org/). To use these interfaces, ramannoodle should be installed with the `pymatgen` options group:

```
$ pip install ramannoodle[pymatgen]
```

## Tutorials and docs

[https://ramannoodle.readthedocs.io/](https://ramannoodle.readthedocs.io/)

Expand Down
17 changes: 17 additions & 0 deletions deps/pymatgen_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
matplotlib >= 3.7.0 # min recommended
mpmath >= 1.2.0
pandas >= 2.0.0 # min recommended
pillow >= 8.3.2;python_version=='3.10' and sys_platform=='darwin' # working
pillow >= 8.3.2;python_version=='3.10' and sys_platform=='win32' # working
pillow >= 8.3.2;python_version=='3.10' and sys_platform=='linux' # min recommended
pillow >= 8.3.2;python_version=='3.11' and sys_platform=='darwin' # min recommended
pillow >= 10.0.0;python_version=='3.11' and sys_platform=='win32' # working
pillow >= 8.3.2;python_version=='3.11' and sys_platform=='linux' # min recommended
pillow >= 10.1.0;python_version=='3.12' and sys_platform=='darwin' # working
pillow >= 10.1.0;python_version=='3.12' and sys_platform=='win32' # working
pillow >= 10.1.0;python_version=='3.12' and sys_platform=='linux' # min recommended
pymatgen >= 2024.8.9 # min working
pyparsing >= 3.0.0 # min working
ruamel-yaml >= 0.17.2
sympy >= 1.13.3;python_version=='3.12'
uncertainties >= 3.1.7
2 changes: 1 addition & 1 deletion docs/coverage-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/gen_api_sources.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# CD must be the reports directory!
sphinx-apidoc -o source/generated ../ramannoodle
# CD must be the docs directory
sphinx-apidoc --module-first --remove-old -f --templatedir=source/_templates -f --remove-old -o source/generated ../ramannoodle
2 changes: 1 addition & 1 deletion docs/gen_test_coverage_badges.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CD must be the reports directory!
# CD must be the docs directory!
cd ..
coverage run -m pytest --junitxml=reports/junit/junit.xml test
coverage xml -o reports/coverage/coverage.xml
Expand Down
8 changes: 8 additions & 0 deletions docs/source/_templates/module.rst.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{%- if show_headings %}
{{- [basename, "module"] | join(' ') | e | heading }}

{% endif -%}
.. automodule:: {{ qualname }}
{%- for option in automodule_options %}
:{{ option }}:
{%- endfor %}
57 changes: 57 additions & 0 deletions docs/source/_templates/package.rst.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{%- macro automodule(modname, options) -%}
.. automodule:: {{ modname }}
{%- for option in options %}
:{{ option }}:
{%- endfor %}
{%- endmacro %}

{%- macro toctree(docnames) -%}
.. toctree::
:maxdepth: {{ maxdepth }}
{% for docname in docnames %}
{{ docname }}
{%- endfor %}
{%- endmacro %}

{%- if is_namespace %}
{{- [pkgname, ""] | join(" ") | e | heading }}
{% else %}
{{- [pkgname, ""] | join(" ") | e | heading }}
{% endif %}

{%- if is_namespace %}
.. py:module:: {{ pkgname }}
{% endif %}

{%- if modulefirst and not is_namespace %}
{{ automodule(pkgname, automodule_options) }}
{% endif %}

{%- if subpackages %}
Subpackages
-----------

{{ toctree(subpackages) }}
{% endif %}

{%- if submodules %}
Submodules
----------
{% if separatemodules %}
{{ toctree(submodules) }}
{% else %}
{%- for submodule in submodules %}
{% if show_headings %}
{{- [submodule, "module"] | join(" ") | e | heading(2) }}
{% endif %}
{{ automodule(submodule, automodule_options) }}
{% endfor %}
{%- endif %}
{%- endif %}

{%- if not modulefirst and not is_namespace %}
Module contents
---------------

{{ automodule(pkgname, automodule_options) }}
{% endif %}
2 changes: 2 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
'numpy': ('http://docs.scipy.org/doc/numpy', None),
'scipy': ('http://docs.scipy.org/doc/scipy/reference', None),
'torch': ('https://pytorch.org/docs/stable/', None),
'pymatgen': ('https://pymatgen.org', None),
}

intersphinx_disabled_domains = ['std']
Expand All @@ -51,6 +52,7 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'furo'
html_title = 'ramannoodle'
html_static_path = ['_static']
html_theme_options = {
"light_logo": "logo.png",
Expand Down
17 changes: 7 additions & 10 deletions docs/source/generated/ramannoodle.dataset.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
ramannoodle.dataset package
===========================
ramannoodle.dataset
====================

.. automodule:: ramannoodle.dataset
:members:
:undoc-members:
:show-inheritance:

Subpackages
-----------
Expand All @@ -8,11 +13,3 @@ Subpackages
:maxdepth: 4

ramannoodle.dataset.torch

Module contents
---------------

.. automodule:: ramannoodle.dataset
:members:
:undoc-members:
:show-inheritance:
23 changes: 6 additions & 17 deletions docs/source/generated/ramannoodle.dataset.torch.rst
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
ramannoodle.dataset.torch package
=================================
ramannoodle.dataset.torch
==========================

Submodules
----------

ramannoodle.dataset.torch.dataset module
----------------------------------------

.. automodule:: ramannoodle.dataset.torch.dataset
.. automodule:: ramannoodle.dataset.torch
:members:
:undoc-members:
:show-inheritance:

Submodules
----------

ramannoodle.dataset.torch.utils module
--------------------------------------

.. automodule:: ramannoodle.dataset.torch.utils
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

.. automodule:: ramannoodle.dataset.torch
:members:
:undoc-members:
:show-inheritance:
26 changes: 2 additions & 24 deletions docs/source/generated/ramannoodle.dynamics.rst
Original file line number Diff line number Diff line change
@@ -1,27 +1,5 @@
ramannoodle.dynamics package
============================

Submodules
----------

ramannoodle.dynamics.phonon module
----------------------------------

.. automodule:: ramannoodle.dynamics.phonon
:members:
:undoc-members:
:show-inheritance:

ramannoodle.dynamics.trajectory module
--------------------------------------

.. automodule:: ramannoodle.dynamics.trajectory
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------
ramannoodle.dynamics
=====================

.. automodule:: ramannoodle.dynamics
:members:
Expand Down
23 changes: 10 additions & 13 deletions docs/source/generated/ramannoodle.io.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
ramannoodle.io package
======================
ramannoodle.io
===============

.. automodule:: ramannoodle.io
:members:
:undoc-members:
:show-inheritance:

Subpackages
-----------
Expand All @@ -20,18 +25,10 @@ ramannoodle.io.generic module
:undoc-members:
:show-inheritance:

ramannoodle.io.utils module
---------------------------
ramannoodle.io.pymatgen module
------------------------------

.. automodule:: ramannoodle.io.utils
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

.. automodule:: ramannoodle.io
.. automodule:: ramannoodle.io.pymatgen
:members:
:undoc-members:
:show-inheritance:
17 changes: 7 additions & 10 deletions docs/source/generated/ramannoodle.io.vasp.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
ramannoodle.io.vasp package
===========================
ramannoodle.io.vasp
====================

.. automodule:: ramannoodle.io.vasp
:members:
:undoc-members:
:show-inheritance:

Submodules
----------
Expand Down Expand Up @@ -35,11 +40,3 @@ ramannoodle.io.vasp.xdatcar module
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

.. automodule:: ramannoodle.io.vasp
:members:
:undoc-members:
:show-inheritance:
36 changes: 7 additions & 29 deletions docs/source/generated/ramannoodle.pmodel.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
ramannoodle.pmodel package
==========================
ramannoodle.pmodel
===================

.. automodule:: ramannoodle.pmodel
:members:
:undoc-members:
:show-inheritance:

Subpackages
-----------
Expand All @@ -8,30 +13,3 @@ Subpackages
:maxdepth: 4

ramannoodle.pmodel.torch

Submodules
----------

ramannoodle.pmodel.art module
-----------------------------

.. automodule:: ramannoodle.pmodel.art
:members:
:undoc-members:
:show-inheritance:

ramannoodle.pmodel.interpolation module
---------------------------------------

.. automodule:: ramannoodle.pmodel.interpolation
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------

.. automodule:: ramannoodle.pmodel
:members:
:undoc-members:
:show-inheritance:
34 changes: 2 additions & 32 deletions docs/source/generated/ramannoodle.pmodel.torch.rst
Original file line number Diff line number Diff line change
@@ -1,35 +1,5 @@
ramannoodle.pmodel.torch package
================================

Submodules
----------

ramannoodle.pmodel.torch.gnn module
-----------------------------------

.. automodule:: ramannoodle.pmodel.torch.gnn
:members:
:undoc-members:
:show-inheritance:

ramannoodle.pmodel.torch.train module
-------------------------------------

.. automodule:: ramannoodle.pmodel.torch.train
:members:
:undoc-members:
:show-inheritance:

ramannoodle.pmodel.torch.utils module
-------------------------------------

.. automodule:: ramannoodle.pmodel.torch.utils
:members:
:undoc-members:
:show-inheritance:

Module contents
---------------
ramannoodle.pmodel.torch
=========================

.. automodule:: ramannoodle.pmodel.torch
:members:
Expand Down
Loading

0 comments on commit 8404456

Please sign in to comment.