Skip to content

Commit 5f15801

Browse files
Merge pull request #86 from GazzolaLab/update-0.2.3
Release 0.2.3
2 parents fee87b9 + 39e02ec commit 5f15801

35 files changed

+3032
-453
lines changed

.coveragerc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ exclude_lines =
44
# Don't complain if non-runnable code isn't run:
55
if 0:
66
if __name__ == .__main__.:
7+
...
8+
pass
9+
def __repr__
10+
from
11+
import
12+
713

814
[run]
915
branch = True

.flake8

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@ ignore = E203, E266, E501, W503, F403, F401, W191
33
max-line-length = 88
44
max-complexity = 18
55
select = B,C,E,F,W,T4,B9
6-
exclude = .git,__pycache__,elastica/rod.py
6+
exclude =
7+
.git,
8+
__pycache__,
9+
docs/conf.py
10+
tests

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
black:
22
@black --version
3-
@black --required-version 21.12b0 elastica tests
3+
@black --required-version 21.12b0 elastica tests examples
44

55

66
black_check:
@@ -12,6 +12,8 @@ flake8:
1212
@flake8 --version
1313
@flake8 elastica tests
1414

15+
test:
16+
@python -m pytest
1517

1618
all:black flake8
1719
ci:black_check flake8

RELEASE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Release Note (version 0.2.3)
2+
3+
4+
## Developer Note
5+
The major updates are knot theory module added to the Cosserat rod as *mixin*, and muscular snake example is added.
6+
7+
## Notable Changes
8+
- #70: Knot theory module to compute topological quantities.
9+
- #71: Reorganize rod constructor warning messages and collect messages in log.
10+
- #72: Muscular snake example is added.
11+
---
12+
113
# Release Note (version 0.2.2)
214

315
## Developer Note

docs/api/external_forces.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ External Forces / Interactions
88
Description
99
-----------
1010

11-
External force and environmental interaction are represented as force/torque bounaary condition at different location.
11+
External force and environmental interaction are represented as force/torque boundary condition at different location.
1212

1313
.. rubric:: Available Forcing
1414

docs/api/rods.rst

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Rods
2-
=====
2+
====
33

44
.. automodule:: elastica.rod.rod_base
55
:members:
66
:exclude-members: __weakref__
77

88
Cosserat Rod
9-
~~~~~~~~~~~~
9+
------------
1010

1111
+------------+-------------------+----------------------------------------+-----------------------------+
1212
| | On Nodes (+1) | On Elements (n_elements) | On Voronoi (-1) |
@@ -39,9 +39,22 @@ Cosserat Rod
3939
.. automodule:: elastica.rod.cosserat_rod
4040
:exclude-members: __weakref__, __init__, update_accelerations, zeroed_out_external_forces_and_torques, compute_internal_forces_and_torques
4141
:members:
42+
:inherited-members:
4243

4344
.. Constitutive Models
4445
.. ~~~~~~~~~~~~~~~~~~~
4546
.. .. automodule:: elastica.rod.constitutive_model
4647
.. :members:
4748
.. :exclude-members: __weakref__
49+
50+
51+
Knot Theory (Mixin)
52+
~~~~~~~~~~~~~~~~~~~
53+
54+
.. .. autoclass:: elastica.rod.knot_theory.KnotTheory
55+
56+
.. .. autoclass:: elastica.rod.knot_theory.KnotTheoryCompatibleProtocol
57+
58+
.. automodule:: elastica.rod.knot_theory
59+
:exclude-members: __init__
60+
:members:

docs/conf.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,13 @@
8080
# The theme to use for HTML and HTML Help pages. See the documentation for
8181
# a list of builtin themes.
8282

83-
html_theme = 'sphinx_rtd_theme'
84-
html_logo = "https://github.com/GazzolaLab/PyElastica/blob/assets/docs/assets/Logo.png?raw=true"
83+
html_theme = 'sphinx_book_theme'
84+
html_theme_options = {
85+
"repository_url": "https://github.com/GazzolaLab/PyElastica",
86+
"use_repository_button": True,
87+
}
88+
html_title = "PyElastica"
89+
html_logo = "_static/assets/Logo.png"
8590
#pygments_style = "sphinx"
8691

8792
# Add any paths that contain custom static files (such as style sheets) here,
@@ -90,5 +95,8 @@
9095
html_static_path = ['_static']
9196
html_css_files = ['css/*', 'css/logo.css']
9297

98+
# -- Options for autodoc ---------------------------------------------------
99+
autodoc_member_order = 'bysource'
100+
93101
# -- Options for numpydoc ---------------------------------------------------
94102
numpydoc_show_class_members = False
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PyBind Tutorials
1+
# Binder Tutorials
22

33
<!--
44
<a href="https://mybinder.org/v2/gh/GazzolaLab/PyElastica/master?filepath=examples%2FBinder%2F0_PyElastica_Tutorials_Overview.ipynb">

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ If you are interested to contribute, please read `contribution-guide`_ first.
4444
guide/workflow
4545
guide/discretization
4646
guide/example_cases
47-
guide/pybind
47+
guide/binder
4848
guide/visualization
4949

5050
.. toctree::

docs/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# File: docs/requirements.txt
22

33
sphinx==4.4.0
4-
sphinx_rtd_theme==1.0.0
4+
#sphinx_rtd_theme==1.0.0
5+
sphinx-book-theme
56
readthedocs-sphinx-search==0.1.1
67
sphinx-autodoc-typehints
78
myst-parser

0 commit comments

Comments
 (0)