pyunitwizard.storage.asdf.write#

pyunitwizard.storage.asdf.write(path, record)[source]#

Publish a new complete local ASDF snapshot without replacing any path.

Parameters:
  • path (path-like) – New local file. Its parent directory must already exist.

  • record (QuantityRecord) – Snapshot accepted by to_tree.

Return type:

None

Raises:
  • RecordError – For failed encoding/publication, including an existing destination. Only the owned temporary file is cleaned on failure.

  • ModuleNotFoundError – If an optional provider is absent.

Examples

>>> write('proper_motion.asdf', record)