Skip to content

Commit

Permalink
fix: phase of complex methods returns np.ndarray
Browse files Browse the repository at this point in the history
  • Loading branch information
nicrie committed Jun 30, 2023
1 parent 5921eb4 commit dfb050d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xeofs/models/rotator.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def components_phase(self) -> DataArray | Dataset | DataArrayList:
Phase of the components.
'''
comps = np.angle(self._components)
comps = xr.apply_ufunc(np.angle, self._components)
comps.name = 'phase'
comps = self._model.stacker.inverse_transform_components(comps)
return comps
Expand Down

0 comments on commit dfb050d

Please sign in to comment.