Update core.py

Saves PCAs in H5 file.