Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
include versioneer.py
include devito/_version.py
# Explicitly include the requirements files
include requirements.txt
include requirements-optional.txt
include requirements-testing.txt
include requirements-mpi.txt
include requirements-nvidia.txt

# Exclude the Github, Binder and Docker directories
prune .github
prune binder
prune docker
# Exclude hidden files and YAML files
exclude .* *.yml

# Exclude compiled and temporary files
global-exclude *~ *.py[cod] *.so
20 changes: 14 additions & 6 deletions devito/builtins/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,20 +180,28 @@ def inner(f, g):
return f.dtype(n.data[0])


red_doc = lambda func: f"""
Retrieve the {func}imum.
def mmin(f):
"""
Retrieve the minimum.

Parameters
----------
f : array_like or Function
Input operand.
"""
return _reduce_func(f, np.min, dv.mpi.MPI.MIN)


def mmax(f):
"""
Retrieve the maximum.

mmin = lambda f: _reduce_func(f, np.min, dv.mpi.MPI.MIN)
mmin.__doc__ = red_doc('min')
mmax = lambda f: _reduce_func(f, np.max, dv.mpi.MPI.MAX)
mmax.__doc__ = red_doc('max')
Parameters
----------
f : array_like or Function
Input operand.
"""
return _reduce_func(f, np.max, dv.mpi.MPI.MAX)


@dv.switchconfig(log_level='ERROR')
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ extras = { file = ["requirements-optional.txt"] }

[tool.setuptools.packages.find]
where = ["."]
exclude = ["docs", "tests", "examples"]

exclude = ["binder", "docker", "docs", "tests", "examples"]

[tool.setuptools_scm]
fallback_version = "0+untagged"
Expand Down
Loading