Skip to content

Commit 0aad7da

Browse files
committed
getting this branch up to speed with the unit tests branch
2 parents 1e3d750 + ac6e51b commit 0aad7da

5 files changed

Lines changed: 231 additions & 306 deletions

File tree

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
root = true
2+
3+
[*.py]
4+
indent_style = tab
5+
indent_size = 4
6+
trim_trailing_whitespace = true

pynumdiff/finite_difference/_finite_difference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def first_order(x, dt, params=None, options={}, num_iterations=None):
1717
- **dxdt_hat** -- estimated derivative of x
1818
"""
1919
if params != None and 'iterate' in options:
20-
raise DeprecationWarning("""`params` and `options` parameters will be removed in a future version. Use `num_iterations` instead.""")
20+
warn("""`params` and `options` parameters will be removed in a future version. Use `num_iterations` instead.""", DeprecationWarning)
2121
if isinstance(params, list): params = params[0]
2222
return _iterate_first_order(x, dt, params)
2323
elif num_iterations:

0 commit comments

Comments
 (0)