maroba / findiff

Python package for numerical derivatives and partial differential equations in any number of dimensions.
MIT License
420 stars 60 forks source link

FinDiff class dosn't pass accuracy to Diff class #23

Closed mikeWShef closed 4 years ago

mikeWShef commented 4 years ago

You can se the accuracy on instatiation of the FinDiff class and it is set as an attibute for the class but when Diff is called, this accuracy is not passed on: lines 139, 141 and 151 of operators.py all read: pd = Diff(axis, order) Great package btw, really useful

maroba commented 4 years ago

Sorry for the late reply! The accuracy is not passed by the constructor but instead when applying the partial derivative, see operators.py lines 81 to 94. So it should be correct. Glad, that you find it useful! :-)