-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release Version 0.0.1 See merge request ricos/machine_learning/phlower!18
- Loading branch information
Showing
193 changed files
with
12,098 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: github pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build_docs: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: python:3.10-slim | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: setup | ||
shell: bash | ||
run: | | ||
apt update -y | ||
apt install -y make git | ||
pip install poetry | ||
poetry config virtualenvs.in-project false | ||
poetry install | ||
- name: build_pages | ||
shell: bash | ||
run: | | ||
make document | ||
mkdir public | ||
cp -r docs/build/html/* public/ | ||
- name: upload_artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: html_pages | ||
path: public/ # or path/to/artifact | ||
|
||
deploy_docs: | ||
runs-on: ubuntu-latest | ||
needs: build_docs | ||
steps: | ||
|
||
- name: download_artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: html_pages | ||
path: public/ | ||
|
||
- name: deploy_pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: public | ||
force_orphan: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,29 @@ | ||
# phlower | ||
|
||
This is a Python package which helps you handle GNN especially for physics problems. | ||
|
||
__phlower__ is a deep learning framework based on PyTorch especially for physical phenomenon such as fluid dynamics. | ||
|
||
For more details, please refer to user manual below. | ||
|
||
- [User Manual](https://ricosjp.github.io/phlower/) | ||
|
||
|
||
## Key Features | ||
|
||
|
||
Tutorials are prepared for key features ! | ||
|
||
1. [Extended Tensor object which enables you to handle physics dimention](https://github.com/ricosjp/phlower/tutorials/basic_usages/01_phlower_tensor_basic) | ||
2. [Model definition by yaml file](https://github.com/ricosjp/phlower/tutorials/basic_usages/02_model_definition_by_yaml_file) | ||
3. [High Level API for scaling, training and predicion](https://github.com/ricosjp/phlower/tutorials/basic_usages/03_high_level_api_for_scaling_training_and_prediction) | ||
|
||
|
||
|
||
## Usage | ||
|
||
**phlower** can be installed with pip. Python 3.10 or newer is supported. | ||
|
||
``` | ||
pip install phlower | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = source | ||
BUILDDIR = build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@ECHO OFF | ||
|
||
pushd %~dp0 | ||
|
||
REM Command file for Sphinx documentation | ||
|
||
if "%SPHINXBUILD%" == "" ( | ||
set SPHINXBUILD=sphinx-build | ||
) | ||
set SOURCEDIR=source | ||
set BUILDDIR=build | ||
|
||
%SPHINXBUILD% >NUL 2>NUL | ||
if errorlevel 9009 ( | ||
echo. | ||
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx | ||
echo.installed, then set the SPHINXBUILD environment variable to point | ||
echo.to the full path of the 'sphinx-build' executable. Alternatively you | ||
echo.may add the Sphinx directory to PATH. | ||
echo. | ||
echo.If you don't have Sphinx installed, grab it from | ||
echo.https://www.sphinx-doc.org/ | ||
exit /b 1 | ||
) | ||
|
||
if "%1" == "" goto help | ||
|
||
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
goto end | ||
|
||
:help | ||
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
|
||
:end | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
reference/generated | ||
tutorials/** | ||
!tutorials/index.rst | ||
sg_execution_times.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
:orphan: | ||
|
||
{% extends "!autosummary/class.rst" %} | ||
|
||
{# | ||
Inherited methods from parent class are not shown in this manual. | ||
original templates are located in `.venv/lib/python3.10/site-packages/sphinx/ext/autosummary/templates/autosummary` | ||
#} | ||
{% block methods %} | ||
{% if methods %} | ||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
{% for item in methods %} | ||
{% if item in inherited_members %} | ||
{% else %} | ||
~{{ name }}.{{ item }} | ||
{% endif %} | ||
{%- endfor %} | ||
{% endif %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
:orphan: | ||
|
||
{% extends "!autosummary/class.rst" %} | ||
|
||
{# | ||
Specific methods are only shown in this manual. | ||
showitems = ["from_setting", "get_nn_name", "forward"] | ||
original templates are located in `.venv/lib/python3.10/site-packages/sphinx/ext/autosummary/templates/autosummary` | ||
#} | ||
|
||
{% block methods %} | ||
{% set showitems = ["from_setting", "get_nn_name", "forward"] %} | ||
{% if methods %} | ||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
{% for item in methods %} | ||
{% if item not in showitems %} | ||
{% else %} | ||
~{{ name }}.{{ item }} | ||
{% endif %} | ||
{%- endfor %} | ||
{% endif %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
:orphan: | ||
|
||
{% extends "!autosummary/class.rst" %} | ||
|
||
{# | ||
Methods which startswith "model_" are not shown in this manual. | ||
original templates are located in `.venv/lib/python3.10/site-packages/sphinx/ext/autosummary/templates/autosummary` | ||
#} | ||
|
||
{% block methods %} | ||
{% if methods %} | ||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
{% for item in methods %} | ||
{% if item.startswith("model_") %} | ||
{% else %} | ||
~{{ name }}.{{ item }} | ||
{% endif %} | ||
{%- endfor %} | ||
{% endif %} | ||
|
||
{% endblock %} |
Oops, something went wrong.