Skip to content

Fixing ufunc issue in scale/shift application

Alexander Froch requested to merge alfroch-master-patch-40729 into master

Summary

This MR introduces the following changes

  • Fixing an issue with the application of the scale/shift values. When different types (float32 for the variable and float64 for the scale/shift value) an error is raised cannot cast ufung 'subtract' output from dtype('float64') to dtype('float32') with casting rule 'same_kind'. This is fixed by removing the ufunc -= and /= and replace them with the usual longer type.

Tagging @sargyrop

Conformity

Edited by Alexander Froch

Merge request reports