Skip to content

Commit

Permalink
Renamed project from interp to regridding since interp wasn't a…
Browse files Browse the repository at this point in the history
…vailable on PyPI.

Signed-off-by: Roy Smart <[email protected]>
  • Loading branch information
byrdie committed Jun 10, 2023
1 parent 26d6f06 commit d2fb7b8
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# interp
# regridding

![tests](https://github.com/byrdie/interp/actions/workflows/tests.yml/badge.svg)
[![codecov](https://codecov.io/gh/byrdie/interp/branch/main/graph/badge.svg?token=TV57F67UUI)](https://codecov.io/gh/byrdie/interp)
[![Documentation Status](https://readthedocs.org/projects/interp/badge/?version=latest)](https://interp.readthedocs.io/en/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/interp.svg)](https://badge.fury.io/py/interp)
![tests](https://github.com/byrdie/regridding/actions/workflows/tests.yml/badge.svg)
[![codecov](https://codecov.io/gh/byrdie/regridding/branch/main/graph/badge.svg?token=TV57F67UUI)](https://codecov.io/gh/byrdie/regridding)
[![Documentation Status](https://readthedocs.org/projects/regridding/badge/?version=latest)](https://regridding.readthedocs.io/en/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/regridding.svg)](https://badge.fury.io/py/regridding)

`numba`-accelerated interpolation of `numpy` n-dimensional arrays.
Numba-accelerated multilinear and first-order conservative interpolation of Numpy arrays.
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# -- Project information -----------------------------------------------------

project = 'interp'
project = 'regridding'
copyright = '2023, Roy T. Smart'
author = 'Roy T. Smart'

Expand Down Expand Up @@ -75,13 +75,13 @@
"icon_links": [
{
"name": "GitHub",
"url": "https://github.com/byrdie/interp",
"url": "https://github.com/byrdie/regridding",
"icon": "fa-brands fa-github",
"type": "fontawesome",
},
{
"name": "PyPI",
"url": "https://pypi.org/project/interp/",
"url": "https://pypi.org/project/regridding/",
"icon": "fa-brands fa-python",
},
],
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Introduction
:template: module_custom.rst
:recursive:

interp
regridding



Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "interp"
name = "regridding"
authors = [
{name = "Roy T. Smart", email = "[email protected]"},
]
Expand Down Expand Up @@ -35,7 +35,7 @@ doc = [
]

[project.urls]
Homepage = "https://github.com/byrdie/interp"
Documentation = "https://interp.readthedocs.io/en/latest"
Homepage = "https://github.com/byrdie/regridding"
Documentation = "https://regridding.readthedocs.io/en/latest"

[tool.setuptools_scm]
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import numpy as np
import scipy.ndimage
import interp
import regridding


sz_t = 9
Expand Down Expand Up @@ -32,7 +32,7 @@ def test_ndarray_linear_interpolation_1d(
x: np.ndarray,
axis: None | int | tuple[int]
):
result = interp.ndarray_linear_interpolation(a=a, coordinates=(x,), axis=axis)
result = regridding.ndarray_linear_interpolation(a=a, coordinates=(x,), axis=axis)
expected = scipy.ndimage.map_coordinates(input=a, coordinates=x[np.newaxis], mode="nearest", order=1)

assert np.allclose(result, expected)
Expand Down Expand Up @@ -74,7 +74,7 @@ def test_ndarray_linear_interpolation_2d(
):
x, y = np.broadcast_arrays(x, y)

result = interp.ndarray_linear_interpolation(a=a, coordinates=(x, y), axis=axis)
result = regridding.ndarray_linear_interpolation(a=a, coordinates=(x, y), axis=axis)
expected = scipy.ndimage.map_coordinates(input=a, coordinates=np.stack([x, y]), order=1)

print(result - expected)
Expand Down

0 comments on commit d2fb7b8

Please sign in to comment.