Skip to content

Commit

Permalink
Merge pull request #86 from GazzolaLab/update-0.2.3
Browse files Browse the repository at this point in the history
Release 0.2.3
  • Loading branch information
armantekinalp committed May 19, 2022
2 parents fee87b9 + 39e02ec commit 5f15801
Show file tree
Hide file tree
Showing 35 changed files with 3,032 additions and 453 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ exclude_lines =
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
...
pass
def __repr__
from
import


[run]
branch = True
Expand Down
6 changes: 5 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ ignore = E203, E266, E501, W503, F403, F401, W191
max-line-length = 88
max-complexity = 18
select = B,C,E,F,W,T4,B9
exclude = .git,__pycache__,elastica/rod.py
exclude =
.git,
__pycache__,
docs/conf.py
tests
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
black:
@black --version
@black --required-version 21.12b0 elastica tests
@black --required-version 21.12b0 elastica tests examples


black_check:
Expand All @@ -12,6 +12,8 @@ flake8:
@flake8 --version
@flake8 elastica tests

test:
@python -m pytest

all:black flake8
ci:black_check flake8
12 changes: 12 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# Release Note (version 0.2.3)


## Developer Note
The major updates are knot theory module added to the Cosserat rod as *mixin*, and muscular snake example is added.

## Notable Changes
- #70: Knot theory module to compute topological quantities.
- #71: Reorganize rod constructor warning messages and collect messages in log.
- #72: Muscular snake example is added.
---

# Release Note (version 0.2.2)

## Developer Note
Expand Down
2 changes: 1 addition & 1 deletion docs/api/external_forces.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ External Forces / Interactions
Description
-----------

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

.. rubric:: Available Forcing

Expand Down
17 changes: 15 additions & 2 deletions docs/api/rods.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Rods
=====
====

.. automodule:: elastica.rod.rod_base
:members:
:exclude-members: __weakref__

Cosserat Rod
~~~~~~~~~~~~
------------

+------------+-------------------+----------------------------------------+-----------------------------+
| | On Nodes (+1) | On Elements (n_elements) | On Voronoi (-1) |
Expand Down Expand Up @@ -39,9 +39,22 @@ Cosserat Rod
.. automodule:: elastica.rod.cosserat_rod
:exclude-members: __weakref__, __init__, update_accelerations, zeroed_out_external_forces_and_torques, compute_internal_forces_and_torques
:members:
:inherited-members:

.. Constitutive Models
.. ~~~~~~~~~~~~~~~~~~~
.. .. automodule:: elastica.rod.constitutive_model
.. :members:
.. :exclude-members: __weakref__
Knot Theory (Mixin)
~~~~~~~~~~~~~~~~~~~

.. .. autoclass:: elastica.rod.knot_theory.KnotTheory
.. .. autoclass:: elastica.rod.knot_theory.KnotTheoryCompatibleProtocol
.. automodule:: elastica.rod.knot_theory
:exclude-members: __init__
:members:
12 changes: 10 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,13 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.

html_theme = 'sphinx_rtd_theme'
html_logo = "https://github.com/GazzolaLab/PyElastica/blob/assets/docs/assets/Logo.png?raw=true"
html_theme = 'sphinx_book_theme'
html_theme_options = {
"repository_url": "https://github.com/GazzolaLab/PyElastica",
"use_repository_button": True,
}
html_title = "PyElastica"
html_logo = "_static/assets/Logo.png"
#pygments_style = "sphinx"

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

# -- Options for autodoc ---------------------------------------------------
autodoc_member_order = 'bysource'

# -- Options for numpydoc ---------------------------------------------------
numpydoc_show_class_members = False
2 changes: 1 addition & 1 deletion docs/guide/pybind.md → docs/guide/binder.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# PyBind Tutorials
# Binder Tutorials

<!--
<a href="https://mybinder.org/v2/gh/GazzolaLab/PyElastica/master?filepath=examples%2FBinder%2F0_PyElastica_Tutorials_Overview.ipynb">
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ If you are interested to contribute, please read `contribution-guide`_ first.
guide/workflow
guide/discretization
guide/example_cases
guide/pybind
guide/binder
guide/visualization

.. toctree::
Expand Down
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# File: docs/requirements.txt

sphinx==4.4.0
sphinx_rtd_theme==1.0.0
#sphinx_rtd_theme==1.0.0
sphinx-book-theme
readthedocs-sphinx-search==0.1.1
sphinx-autodoc-typehints
myst-parser
Expand Down
4 changes: 1 addition & 3 deletions elastica/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import os
import numpy as np
import numba
from collections import defaultdict
from elastica.wrappers import *
from elastica.rod.cosserat_rod import *
from elastica.rod.knot_theory import *
from elastica.rigidbody import *
from elastica.boundary_conditions import *
from elastica.external_forces import *
Expand Down

0 comments on commit 5f15801

Please sign in to comment.