Skip to main content
When you process scientific data in pycroscopy, you can preserve each result as a Dataerai asset and link it back to the raw measurement it came from. You keep the scientific workflow in pycroscopy, and Dataerai stores the asset, its content, your metadata, and a typed provenance relationship to the upstream asset. There is no separate pycroscopy package — you use the Dataerai Python SDK directly. The pattern is always the same: upload the output, then create a relationship to its source.

Requirements

  • Python 3.10+
  • pycroscopy
  • The dataerai Python SDK (pip install dataerai-sdk)
  • The dataerai binary on your PATH (install the CLI)
  • Signed in with dataerai auth login (see Authenticate)

Install

Save your processed pycroscopy output to a file, upload it as a new asset, then link the new asset to the raw measurement with create_relationship:

What gets saved

  • The processed file as the asset’s content.
  • The title, tags, and any metadata dict you pass — a natural place to record the workflow name, parameters, input shape, dtype, and other sidpy.Dataset summary fields.
  • A directed provenance relationship from the new asset to its source asset.
The edge points from the preserved output to its source. Use analysis_of when the output is an analysis result, or derived_from for a processed output. See Provenance & relationships for the relationship model, and the Python SDK reference for the full create_relationship signature.

Next steps

Python SDK

Upload, download, metadata, and relationship methods.

Provenance & relationships

How relationships model data lineage.