Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
fe8393a
Documentation and docstring graph and data
FilippoOlivo Mar 10, 2025
613dc54
Doc LabelTensor
FilippoOlivo Mar 11, 2025
33d9f15
Black formatting on LabelTensor
FilippoOlivo Mar 11, 2025
e9082df
Doc conditions
FilippoOlivo Mar 11, 2025
4dd00cd
Small fixes in conditions
FilippoOlivo Mar 11, 2025
37bb2af
Black formatting on condition
FilippoOlivo Mar 11, 2025
166493c
Codacy fix on condition
FilippoOlivo Mar 11, 2025
7a0c43b
Doc data
FilippoOlivo Mar 11, 2025
1dd7fef
Update doc condition
FilippoOlivo Mar 12, 2025
c4bdf03
Update doc data
FilippoOlivo Mar 12, 2025
8d4fee4
Update doc LT
FilippoOlivo Mar 12, 2025
2030004
Black formatting
FilippoOlivo Mar 12, 2025
85aa9eb
Doc collector
FilippoOlivo Mar 12, 2025
26ad3e6
Black formatting collector
FilippoOlivo Mar 12, 2025
a1b651a
Minor update
FilippoOlivo Mar 12, 2025
3b16bfe
beginning of domain doc
GiovanniCanali Mar 12, 2025
1d86d7a
Fix doc condition
FilippoOlivo Mar 12, 2025
8e2febf
Fix doc data
FilippoOlivo Mar 12, 2025
374c84b
Fix doc
FilippoOlivo Mar 12, 2025
1fa7c85
Other fixes
FilippoOlivo Mar 12, 2025
8b772ec
Black formatting
FilippoOlivo Mar 12, 2025
fa74493
fix doc domain
GiovanniCanali Mar 12, 2025
d559190
fix equation doc
GiovanniCanali Mar 12, 2025
e7c8710
Fix codacy
FilippoOlivo Mar 12, 2025
04ef78e
fix doc loss and codacy
GiovanniCanali Mar 12, 2025
41142c4
Update collector.py
FilippoOlivo Mar 12, 2025
3da693c
Update collector.py
FilippoOlivo Mar 12, 2025
0181851
fix operator doc
GiovanniCanali Mar 12, 2025
d6d778d
Additional fix in condition
FilippoOlivo Mar 12, 2025
7b09bf1
Additional fix in collector
FilippoOlivo Mar 12, 2025
593ab6b
Black formatting
FilippoOlivo Mar 12, 2025
3374176
fix utils and trainer doc
GiovanniCanali Mar 13, 2025
3f630d8
fix optim doc
GiovanniCanali Mar 13, 2025
02067fa
fix problem doc
GiovanniCanali Mar 13, 2025
d7debb2
start refactoring
dario-coscia Mar 13, 2025
0f6e6d7
adaptive_functions rst
dario-coscia Mar 13, 2025
78c319a
update rsts
dario-coscia Mar 13, 2025
240cbce
Fix doc data
FilippoOlivo Mar 12, 2025
c2f966e
Improve doc condition
FilippoOlivo Mar 13, 2025
9fba5a2
update rst
dario-coscia Mar 13, 2025
4583443
fix pinn doc
GiovanniCanali Mar 13, 2025
33abb66
updating rst
dario-coscia Mar 13, 2025
cba9f90
fix doc solver
GiovanniCanali Mar 13, 2025
e0fbd3d
fix rendering part 1
GiovanniCanali Mar 13, 2025
03ec91d
fix rendering part 2
GiovanniCanali Mar 13, 2025
488af56
black formatter
GiovanniCanali Mar 13, 2025
89f8e4e
Tmp fixes
FilippoOlivo Mar 14, 2025
9d9a01b
Fix rendering graph
FilippoOlivo Mar 14, 2025
974cbe4
Fix rendering LT
FilippoOlivo Mar 14, 2025
ada4f53
Black formatting
FilippoOlivo Mar 14, 2025
2edf4ea
fix doc model part 1
GiovanniCanali Mar 14, 2025
53be672
Fix conditions rendering
FilippoOlivo Mar 14, 2025
e102537
Fix rendering and codacy
FilippoOlivo Mar 14, 2025
e44da57
fix doc model part 2
GiovanniCanali Mar 14, 2025
1bbfa2e
modify poisson inv
dario-coscia Mar 14, 2025
da98d61
standardize module docstring
GiovanniCanali Mar 14, 2025
fc8ad33
Automatize Tutorials html, py files creation (#496)
dario-coscia Mar 15, 2025
f85d906
Remove MNIST data from tutorial 4
FilippoOlivo Mar 15, 2025
d05a27f
update workflow, rm tutorial 4 data
dario-coscia Mar 15, 2025
cb68ae5
update html dir
dario-coscia Mar 15, 2025
93b88a6
remove tutorials html
dario-coscia Mar 15, 2025
eb78831
add workflow_dispatch
dario-coscia Mar 15, 2025
c161138
trigger workflow tutorials
dario-coscia Mar 15, 2025
4330c9e
export tutorials changed in c161138 (#498)
github-actions[bot] Mar 15, 2025
cddac85
update doc
dario-coscia Mar 17, 2025
d7816cc
formatting
dario-coscia Mar 17, 2025
77e1e6a
modify automatic batching doc
dario-coscia Mar 17, 2025
d6f69a0
update contributing
dario-coscia Mar 17, 2025
b203353
update cite/team
dario-coscia Mar 17, 2025
0ea6888
format code
dario-coscia Mar 17, 2025
12fc1e5
adding layout.html template
dario-coscia Mar 17, 2025
c5bd22a
update datamodule doc
dario-coscia Mar 17, 2025
762dc7f
update tut11
dario-coscia Mar 17, 2025
923ec3c
export tutorials changed in 762dc7f (#500)
github-actions[bot] Mar 17, 2025
2099e87
formatting
dario-coscia Mar 17, 2025
e99ad86
doc test workflow update
dario-coscia Mar 17, 2025
a5b8844
docs->doc in testing_doc.yml
dario-coscia Mar 17, 2025
35aff03
automodule loss + update doc workflow
dario-coscia Mar 17, 2025
6d08b98
modify conf.py
dario-coscia Mar 17, 2025
d9f7ffc
update workflow file
dario-coscia Mar 17, 2025
9e1e4b9
modify doc workflows
dario-coscia Mar 17, 2025
d35daae
update versioning sphinx
dario-coscia Mar 17, 2025
9e90164
Add docstring for repeat in DataModule
FilippoOlivo Mar 17, 2025
fd070e5
Minor fix
FilippoOlivo Mar 17, 2025
40ad5c9
Remove useless line in sphinx config file
FilippoOlivo Mar 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
72 changes: 72 additions & 0 deletions .github/workflows/export_tutorials.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: "Export Tutorials"

on:
push:
branches:
- "**" # Run on push on all branches
paths:
- 'tutorials/**/*.ipynb'
jobs:
export_tutorials:
permissions: write-all
runs-on: ubuntu-latest
env:
TUTORIAL_TIMEOUT: 1200s
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8

- name: Install dependencies
run: |
# Dependencies for tutorials
python3 -m pip install --upgrade pip .[tutorial] black[jupyter]
- name: Setup FFmpeg
uses: FedericoCarboni/setup-ffmpeg@v2

- id: files
uses: jitterbit/get-changed-files@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
format: space-delimited

- name: Configure git
run: |
git config user.name "github-actions[bot]"
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Export tutorials to .py and .html
run: |
set -x
for file in ${{ steps.files.outputs.all }}; do
if [[ $file == *.ipynb ]]; then
filename=$(basename $file)
pyfilename=$(echo ${filename%?????})py
timeout --signal=SIGKILL $TUTORIAL_TIMEOUT python -Xfrozen_modules=off -m jupyter nbconvert $file --to python --output $pyfilename --output-dir=$(dirname $file)
htmlfilename=$(echo ${filename%?????} | sed -e 's/-//g')html
htmldir="docs/source"/$(echo ${file%??????????????} | sed -e 's/-//g')
timeout --signal=SIGKILL $TUTORIAL_TIMEOUT python -Xfrozen_modules=off -m jupyter nbconvert --execute $file --to html --output $htmlfilename --output-dir=$htmldir
fi
done
set +x

- name: Run formatter
run: black tutorials/

- uses: benjlevesque/short-sha@v2.1
id: short-sha

- name: Remove unwanted files
run: |
rm -rf build/ tutorials/tutorial4/data/
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5.0.2
with:
labels: maintenance
title: Export tutorial changed in ${{ steps.short-sha.outputs.sha }}
branch: export-tutorial-${{ steps.short-sha.outputs.sha }}
base: ${{ github.head_ref }}
commit-message: export tutorials changed in ${{ steps.short-sha.outputs.sha }}
delete-branch: true
2 changes: 1 addition & 1 deletion .github/workflows/sphinx-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Create the new documentation
uses: ammaraskar/sphinx-action@7.4.7
with:
pre-build-command: "python3 -m pip install .[docs]"
pre-build-command: "python3 -m pip install .[doc]"
docs-folder: "docs/"

- name: Deploy
Expand Down
24 changes: 7 additions & 17 deletions .github/workflows/testing_doc.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,23 @@
name: Test Sphinx Documentation Build

on:
push:
branches:
- "master"
paths:
- 'docs/**'
pull_request:
branches:
- "master"
- "0.2"
paths:
- 'docs/**'

jobs:
docs:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Python
uses: ammaraskar/sphinx-action@7.4.7
with:
pre-build-command: "python3 -m pip install .[docs]"
docs-folder: "docs/"
- name: Install Python dependencies
run: python3 -m pip install .[doc]

- name: Build Sphinx documentation
- name: Build Documentation
run: |
cd docs
make html

make html SPHINXOPTS+='-W'
working-directory: docs/
2 changes: 1 addition & 1 deletion docs/source/_cite.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Cite PINA
==============

If PINA has been significant in your research, and you would like to acknowledge the project in your academic publication,
If **PINA** has been significant in your research, and you would like to acknowledge the project in your academic publication,
we suggest citing the following paper:

*Coscia, D., Ivagnes, A., Demo, N., & Rozza, G. (2023). Physics-Informed Neural networks for Advanced modeling. Journal of Open Source Software, 8(87), 5352.*
Expand Down
100 changes: 100 additions & 0 deletions docs/source/_contributing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
Contributing to PINA
=====================

First off, thanks for taking the time to contribute to **PINA**! 🎉 Your help makes the project better for everyone. This document outlines the process for contributing, reporting issues, suggesting features, and submitting pull requests.

Table of Contents
------------------------

1. `How to Contribute`_
2. `Reporting Bugs`_
3. `Suggesting Enhancements`_
4. `Pull Request Process`_
5. `Code Style & Guidelines`_
6. `Community Standards`_

How to Contribute
------------------------

You can contribute in several ways:

- Reporting bugs
- Suggesting features/enhancements
- Submitting fixes or improvements via Pull Requests (PRs)
- Improving documentation

We encourage all contributions, big or small!

Reporting Bugs
------------------------

If you find a bug, please open an `issue <https://github.com/mathLab/PINA/issues>`_ and include:

- A clear and descriptive title
- Steps to reproduce the problem
- What you expected to happen
- What actually happened
- Any relevant logs, screenshots, or error messages
- Environment info (OS, Python version, dependencies, etc.)

Suggesting Enhancements
------------------------

We welcome new ideas! If you have an idea to improve PINA:

1. Check the `issue tracker <https://github.com/mathLab/PINA/issues>`_ or the `discussions <https://github.com/mathLab/PINA/discussions>`_ to see if someone has already suggested it.
2. If not, open a new issue describing:
- The enhancement you'd like
- Why it would be useful
- Any ideas on how to implement it (optional but helpful)
3. If you are not sure about (something of) the enhancement, we suggest opening a discussion to collaborate on it with the PINA community.

Pull Request Process
------------------------

Before submitting a PR:

1. Ensure there’s an open issue related to your contribution (or create one).
2. `Fork <https://help.github.com/articles/fork-a-repo>`_ the repository and create a new branch from ``master``:

.. code-block:: bash

git checkout -b feature/my-feature

3. Make your changes:
- Write clear, concise, and well-documented code
- Add or update tests where appropriate
- Update documentation if necessary
4. Verify your changes by running tests:

.. code-block:: bash

pytest

5. Properly format your code. If you want to save time, simply run:

.. code-block:: bash

bash code_formatter.sh

7. Submit a `pull request <https://help.github.com/articles/creating-a-pull-request>`_ with a clear explanation of your changes and reference the related issue if applicable.

Pull Request Checklist

1. Code follows the project’s style guidelines
2. Tests have been added or updated
3. Documentation has been updated if necessary
4. Pull request is linked to an open issue (if applicable)

Code Style & Guidelines
------------------------

- Follow PEP8 for Python code.
- Use descriptive commit messages (e.g. ``Fix parser crash on empty input``).
- Write clear docstrings for public classes, methods, and functions.
- Keep functions small and focused; do one thing and do it well.

Community Standards
------------------------

By participating in this project, you agree to abide by our Code of Conduct. We are committed to maintaining a welcoming and inclusive community.
File renamed without changes.
Loading
Loading