Skip to content

Draft: Set working precision

Riccardo Riva requested to merge precision into master

Allow ability to set the working precision. This is achieved by adding a variable _dtype to py_wake.__init__ module. This variable is not meant to be accessed by the user, but can instead be modified via py_wake.set_working_precision().

TODO:

  • Find remaining allocations and set the dtype.
  • Apply astype(py_wake._dtype) to user-provided data.

To see the type of all allocated numpy arrays we can call np.who().

Edited by Riccardo Riva

Merge request reports