xarray-contrib / xeofs

Comprehensive EOF analysis in Python with xarray: A versatile, multidimensional, and scalable tool for advanced climate data analysis
https://xeofs.readthedocs.io/
MIT License
98 stars 18 forks source link

fix(cross): correct saving and loading of CPCCA and Rotator models #225

Closed nicrie closed 5 days ago

nicrie commented 6 days ago

Add sample_name and feature_name to the serialization attributes of CPCCA and CPCCARotator models which are needed for some methods (e.g. squared_covariance_fraction()).

Additionally, fix a bug that resulted in an error when components_amplitude() was called on a saved model which was loaded lazily.

Closes #224