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.
Files changed (29) hide show
  1. {interpn-0.1.2 → interpn-0.1.3}/Cargo.lock +2 -2
  2. {interpn-0.1.2 → interpn-0.1.3}/Cargo.toml +1 -1
  3. {interpn-0.1.2 → interpn-0.1.3}/PKG-INFO +1 -1
  4. {interpn-0.1.2 → interpn-0.1.3}/pyproject.toml +1 -1
  5. {interpn-0.1.2 → interpn-0.1.3}/src/lib.rs +16 -12
  6. {interpn-0.1.2 → interpn-0.1.3}/.github/workflows/CI.yml +0 -0
  7. {interpn-0.1.2 → interpn-0.1.3}/.github/workflows/test.yml +0 -0
  8. {interpn-0.1.2 → interpn-0.1.3}/.gitignore +0 -0
  9. {interpn-0.1.2 → interpn-0.1.3}/.readthedocs.yml +0 -0
  10. {interpn-0.1.2 → interpn-0.1.3}/LICENSE-APACHE +0 -0
  11. {interpn-0.1.2 → interpn-0.1.3}/LICENSE-MIT +0 -0
  12. {interpn-0.1.2 → interpn-0.1.3}/README.md +0 -0
  13. {interpn-0.1.2 → interpn-0.1.3}/docs/3d_no_prealloc.svg +0 -0
  14. {interpn-0.1.2 → interpn-0.1.3}/docs/8d_no_prealloc.svg +0 -0
  15. {interpn-0.1.2 → interpn-0.1.3}/docs/API_Docs.md +0 -0
  16. {interpn-0.1.2 → interpn-0.1.3}/docs/index.md +0 -0
  17. {interpn-0.1.2 → interpn-0.1.3}/docs/perf.md +0 -0
  18. {interpn-0.1.2 → interpn-0.1.3}/docs/requirements.txt +0 -0
  19. {interpn-0.1.2 → interpn-0.1.3}/interpn/__init__.py +0 -0
  20. {interpn-0.1.2 → interpn-0.1.3}/interpn/multilinear_rectilinear.py +0 -0
  21. {interpn-0.1.2 → interpn-0.1.3}/interpn/multilinear_regular.py +0 -0
  22. {interpn-0.1.2 → interpn-0.1.3}/interpn/py.typed +0 -0
  23. {interpn-0.1.2 → interpn-0.1.3}/interpn/raw.py +0 -0
  24. {interpn-0.1.2 → interpn-0.1.3}/interpn/serialization.py +0 -0
  25. {interpn-0.1.2 → interpn-0.1.3}/mkdocs.yml +0 -0
  26. {interpn-0.1.2 → interpn-0.1.3}/test/bench.py +0 -0
  27. {interpn-0.1.2 → interpn-0.1.3}/test/test_docs.py +0 -0
  28. {interpn-0.1.2 → interpn-0.1.3}/test/test_multilinear_rectilinear.py +0 -0
  29. {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.1.0"
52
+ version = "0.2.0"
53
53
  source = "registry+https://github.com/rust-lang/crates.io-index"
54
- checksum = "f973fe37fe34fb36693a522aef6d6cd9d04f889008984b1f020c67dfdca200aa"
54
+ checksum = "948b79448b85bb112629b7eac5d445d817e914ab468cf1c704949b086cc55072"
55
55
  dependencies = [
56
56
  "itertools",
57
57
  "num-traits",
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
11
11
  [dependencies]
12
12
  pyo3 = "0.20.0"
13
13
  numpy = "0.20.0"
14
- interpn = "0.1.0"
14
+ interpn = "0.2.0"
15
15
  # interpn = { path = "../interpn/interpn" }
16
16
 
17
17
  [profile.release]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: interpn
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "interpn"
7
- version = "0.1.2"
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
- Ok(())
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
- Ok(())
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
- Ok(())
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
- Ok(())
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