interpn 0.1.2__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {interpn-0.1.2 → interpn-0.1.3}/Cargo.lock +2 -2
- {interpn-0.1.2 → interpn-0.1.3}/Cargo.toml +1 -1
- {interpn-0.1.2 → interpn-0.1.3}/PKG-INFO +1 -1
- {interpn-0.1.2 → interpn-0.1.3}/pyproject.toml +1 -1
- {interpn-0.1.2 → interpn-0.1.3}/src/lib.rs +16 -12
- {interpn-0.1.2 → interpn-0.1.3}/.github/workflows/CI.yml +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/.github/workflows/test.yml +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/.gitignore +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/.readthedocs.yml +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/LICENSE-APACHE +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/LICENSE-MIT +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/README.md +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/docs/3d_no_prealloc.svg +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/docs/8d_no_prealloc.svg +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/docs/API_Docs.md +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/docs/index.md +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/docs/perf.md +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/docs/requirements.txt +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/interpn/__init__.py +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/interpn/multilinear_rectilinear.py +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/interpn/multilinear_regular.py +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/interpn/py.typed +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/interpn/raw.py +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/interpn/serialization.py +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/mkdocs.yml +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/test/bench.py +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/test/test_docs.py +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/test/test_multilinear_rectilinear.py +0 -0
- {interpn-0.1.2 → interpn-0.1.3}/test/test_multilinear_regular.py +0 -0
|
@@ -49,9 +49,9 @@ checksum = "1e186cfbae8084e513daff4240b4797e342f988cecda4fb6c939150f96315fd8"
|
|
|
49
49
|
|
|
50
50
|
[[package]]
|
|
51
51
|
name = "interpn"
|
|
52
|
-
version = "0.
|
|
52
|
+
version = "0.2.0"
|
|
53
53
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
54
|
-
checksum = "
|
|
54
|
+
checksum = "948b79448b85bb112629b7eac5d445d817e914ab468cf1c704949b086cc55072"
|
|
55
55
|
dependencies = [
|
|
56
56
|
"itertools",
|
|
57
57
|
"num-traits",
|
|
@@ -4,7 +4,7 @@ build-backend = "maturin"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "interpn"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.3"
|
|
8
8
|
repository = "https://github.com/jlogan03/interpnpy"
|
|
9
9
|
documentation = "https://interpn.readthedocs.io/"
|
|
10
10
|
description = "N-dimensional interpolation/extrapolation methods"
|
|
@@ -98,9 +98,10 @@ macro_rules! interpn_regular_impl {
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
// Evaluate
|
|
101
|
-
regular::interpn(&dims, starts, steps, vals, obs, out)
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
match regular::interpn(&dims, starts, steps, vals, obs, out) {
|
|
102
|
+
Ok(()) => Ok(()),
|
|
103
|
+
Err(msg) => Err(exceptions::PyAssertionError::new_err(msg)),
|
|
104
|
+
}
|
|
104
105
|
}
|
|
105
106
|
};
|
|
106
107
|
}
|
|
@@ -189,9 +190,10 @@ macro_rules! check_bounds_regular_impl {
|
|
|
189
190
|
}
|
|
190
191
|
|
|
191
192
|
// Evaluate
|
|
192
|
-
regular::check_bounds(&dims, starts, steps, obs, atol, out)
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
match regular::check_bounds(&dims, starts, steps, obs, atol, out) {
|
|
194
|
+
Ok(()) => Ok(()),
|
|
195
|
+
Err(msg) => Err(exceptions::PyAssertionError::new_err(msg)),
|
|
196
|
+
}
|
|
195
197
|
}
|
|
196
198
|
};
|
|
197
199
|
}
|
|
@@ -306,9 +308,10 @@ macro_rules! interpn_rectilinear_impl {
|
|
|
306
308
|
}
|
|
307
309
|
|
|
308
310
|
// Evaluate
|
|
309
|
-
rectilinear::interpn(grids, vals, obs, out)
|
|
310
|
-
|
|
311
|
-
|
|
311
|
+
match rectilinear::interpn(grids, vals, obs, out) {
|
|
312
|
+
Ok(()) => Ok(()),
|
|
313
|
+
Err(msg) => Err(exceptions::PyAssertionError::new_err(msg)),
|
|
314
|
+
}
|
|
312
315
|
}
|
|
313
316
|
};
|
|
314
317
|
}
|
|
@@ -410,9 +413,10 @@ macro_rules! check_bounds_rectilinear_impl {
|
|
|
410
413
|
}
|
|
411
414
|
|
|
412
415
|
// Evaluate
|
|
413
|
-
rectilinear::check_bounds(&grids, obs, atol, out)
|
|
414
|
-
|
|
415
|
-
|
|
416
|
+
match rectilinear::check_bounds(&grids, obs, atol, out) {
|
|
417
|
+
Ok(()) => Ok(()),
|
|
418
|
+
Err(msg) => Err(exceptions::PyAssertionError::new_err(msg)),
|
|
419
|
+
}
|
|
416
420
|
}
|
|
417
421
|
};
|
|
418
422
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|