Commit 29412fc
authored
Add backwards compatibility for NormalCG and add deprecation warning (#190)
* Deprecate NormalCG helper function
- Added **kwargs support to NormalCG function signature
- Added DeprecationWarning directing users to use lx.Normal(lx.CG(...)) instead
- Added docstring with deprecation notice
- Imported warnings module
* Align deprecation warning with Diffrax patterns
- Use "in favour of" phrasing (consistent with Diffrax)
- Add backticks around code examples
- Specify "in some future version of Lineax"
- Keep DeprecationWarning category (more semantically correct)
- Update both warning message and docstring
* fix precommit1 parent 288ca23 commit 29412fc
1 file changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
267 | 268 | | |
268 | 269 | | |
269 | 270 | | |
270 | | - | |
271 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
0 commit comments