pytc.df.thc.convert_store_to_rank_major¶
- pytc.df.thc.convert_store_to_rank_major(src, dst, *, x_dataset='X', x_rm_dataset='X_rm', row_block=8)[source]¶
Whole-store conversion: every dataset copied; X kept AND a rank-major twin appended.
The ISDF store carries more than X (K1/K3/D kernels, metadata); a store the driver can actually load needs all of it. Top-level datasets and file attributes are copied verbatim – including
x_datasetitself, since legacy consumers read it as(nmo, nmo, rank)– and a rank-major twinx_rm_datasetis added alongside (with thex_layoutattribute and a provenance stamp of the source X).Writes go to
<dst>.tmpand are atomically renamed into place, so an interrupted conversion never leaves a partial file at the destination.