qdk_chemistry.migrate.__main__ module
Command-line entry point: python -m qdk_chemistry.migrate OLD NEW.
- exception qdk_chemistry.migrate.__main__.MigrationError
Bases:
RuntimeErrorRaised when a file cannot be migrated to the current serialization version.
- qdk_chemistry.migrate.__main__.convert_file(src, dst)
Migrate a single data file to the serialization version the library accepts.
- Return type:
- Parameters:
- Returns:
The
dstpath as apathlib.Path.- Raises:
MigrationError – If the data type/format cannot be determined, the source and destination are the same file, the file is already at the current serialization version, or the migration fails.