def _get_scalar_units_complex(self):
        if self.probdata.in_complex_step:
            val = self.val[0] + self.imag_val[0]*1j
        else:
            val = self.val   [0]
        scale, offset = self.meta['unit_conv']
        return scale*(val + offset)
Scalar with unit conversion, complex support.
dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/core/vec_wrapper.py/Accessor._get_scalar_units_complex