Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alanlujan91 committed May 1, 2024
1 parent 030cba7 commit b7b37a3
Show file tree
Hide file tree
Showing 26 changed files with 361 additions and 351 deletions.
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ channels:
- conda-forge
- defaults
dependencies:
- python=3.11
- python=3.12
- numpy
- scipy
- numba
Expand All @@ -17,3 +17,4 @@ dependencies:
- scikit-image
- pytorch
- pytorch-cuda
- gpytorch
61 changes: 38 additions & 23 deletions examples/00_Rectilinear/01._Multivariate_Interpolation.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/00_Rectilinear/Multivalued_Interpolation.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

72 changes: 40 additions & 32 deletions examples/01_Curvilinear/03._Curvilinear_Interpolation.ipynb

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions examples/02_Unstructured/06._Unstructured_Interpolation.ipynb

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions examples/02_Unstructured/07._Regression_Interpolation.ipynb

Large diffs are not rendered by default.

23 changes: 11 additions & 12 deletions examples/02_Unstructured/gpytorch.ipynb

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions examples/05._Triangulation.ipynb

Large diffs are not rendered by default.

45 changes: 21 additions & 24 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@

@nox.session
def lint(session: nox.Session) -> None:
"""
Run the linter.
"""
"""Run the linter."""
session.install("pre-commit")
session.run(
"pre-commit", "run", "--all-files", "--show-diff-on-failure", *session.posargs
"pre-commit",
"run",
"--all-files",
"--show-diff-on-failure",
*session.posargs,
)


@nox.session
def pylint(session: nox.Session) -> None:
"""
Run PyLint.
"""
"""Run PyLint."""
# This needs to be installed into the package environment, and is slower
# than a pre-commit check
session.install(".", "pylint")
Expand All @@ -35,23 +35,21 @@ def pylint(session: nox.Session) -> None:

@nox.session
def tests(session: nox.Session) -> None:
"""
Run the unit and regular tests.
"""
"""Run the unit and regular tests."""
session.install(".[test]")
session.run("pytest", *session.posargs)


@nox.session(reuse_venv=True)
def docs(session: nox.Session) -> None:
"""
Build the docs. Pass "--serve" to serve. Pass "-b linkcheck" to check links.
"""

"""Build the docs. Pass "--serve" to serve. Pass "-b linkcheck" to check links."""
parser = argparse.ArgumentParser()
parser.add_argument("--serve", action="store_true", help="Serve after building")
parser.add_argument(
"-b", dest="builder", default="html", help="Build target (default: html)"
"-b",
dest="builder",
default="html",
help="Build target (default: html)",
)
args, posargs = parser.parse_known_args(session.posargs)

Expand All @@ -65,7 +63,12 @@ def docs(session: nox.Session) -> None:

if args.builder == "linkcheck":
session.run(
"sphinx-build", "-b", "linkcheck", ".", "_build/linkcheck", *posargs
"sphinx-build",
"-b",
"linkcheck",
".",
"_build/linkcheck",
*posargs,
)
return

Expand All @@ -86,10 +89,7 @@ def docs(session: nox.Session) -> None:

@nox.session
def build_api_docs(session: nox.Session) -> None:
"""
Build (regenerate) API docs.
"""

"""Build (regenerate) API docs."""
session.install("sphinx")
session.chdir("docs")
session.run(
Expand All @@ -105,10 +105,7 @@ def build_api_docs(session: nox.Session) -> None:

@nox.session
def build(session: nox.Session) -> None:
"""
Build an SDist and wheel.
"""

"""Build an SDist and wheel."""
build_path = DIR.joinpath("build")
if build_path.exists():
shutil.rmtree(build_path)
Expand Down
4 changes: 1 addition & 3 deletions src/multinterp/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
"""
Copyright (c) 2023 Alan Lujan. All rights reserved.
"""Copyright (c) 2023 Alan Lujan. All rights reserved.
multinterp: Multivariate Interpolation.
"""


from __future__ import annotations

from ._version import version as __version__
Expand Down
Loading

0 comments on commit b7b37a3

Please sign in to comment.