Skip to content

Commit

Permalink
Move sph module from utils to analysis package
Browse files Browse the repository at this point in the history
  • Loading branch information
dmentipl committed Aug 10, 2020
1 parent c195cff commit 1dc4f18
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/source/api/analysis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ SPH summation

This section contains functions to perform SPH summation and derivatives.

.. autofunction:: plonk.utils.sph.derivative
.. autofunction:: plonk.utils.sph.summation
.. autofunction:: plonk.analysis.sph.derivative
.. autofunction:: plonk.analysis.sph.summation
6 changes: 6 additions & 0 deletions docs/source/api/miscellaneous.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ Here are some useful utility functions.
.. autofunction:: plonk.utils.math.norm
.. autofunction:: plonk.utils.utils.is_documented_by
.. autofunction:: plonk.utils.utils.time_string
.. autofunction:: plonk.utils.kernels.kernel_cubic
.. autofunction:: plonk.utils.kernels.kernel_quintic
.. autofunction:: plonk.utils.kernels.kernel_wendland_c4
.. autofunction:: plonk.utils.kernels.kernel_gradient_cubic
.. autofunction:: plonk.utils.kernels.kernel_gradient_quintic
.. autofunction:: plonk.utils.kernels.kernel_gradient_wendland_c4
13 changes: 11 additions & 2 deletions plonk/analysis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,16 @@
>>> Roche = sinks.Roche_sphere(m1, m2, separation)
"""

from . import discs, filters, particles, sinks, total
from . import discs, filters, particles, sinks, sph, total
from .profile import Profile, load_profile

__all__ = ['Profile', 'discs', 'filters', 'load_profile', 'particles', 'sinks', 'total']
__all__ = [
'Profile',
'discs',
'filters',
'load_profile',
'particles',
'sinks',
'sph',
'total',
]
2 changes: 1 addition & 1 deletion plonk/utils/sph.py → plonk/analysis/sph.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from numpy import ndarray

from .._logging import logger
from .kernels import (
from ..utils.kernels import (
kernel_cubic,
kernel_gradient_cubic,
kernel_gradient_quintic,
Expand Down

0 comments on commit 1dc4f18

Please sign in to comment.