Esacode

Docs / Blocks / Data

Save as dataset

Keeps the files it receives as a new version of a dataset, in a folder a worker shares.

Runs on a worker (Python) Data Version 1.0 Code you can open and adapt

How it works

Connect the files to keep (curated frames, simulation outputs, reports). They are copied into the dataset's folder inside a shared folder where blocks may write, on that worker; then EsaSim indexes the folder and records a new version with the run that made it and the datasets it came from. Replace keeps only this run's files; Add keeps the files already there too.

To keep files in EsaSim storage, a bucket or a cloud drive, set "Outputs go to" on the block that makes them instead: it sends each file as soon as it is ready.

Inputs

InputTakesWhat it is
Files
files
Files Takes several connections.

Outputs

OutputGivesWhat it is
Saved files
list
Table
csv
Live telemetry
telemetry
Live telemetryWhat the block sends while it runs, for views such as Chart or 3D view.

Settings

SettingDefaultWhat it does
Dataset name
name
Curated set
Shared folder
location
empty
Subfolder
folder
empty Inside the shared folder; empty: a folder named after the dataset
Files already there
mode
Replace
One of: Replace, Add

Where it runs

On one of your computers with the EsaSim worker: Any worker.

In its code, settings are ctx.params["key"], inputs ctx.inputs["id"] and outputs ctx.output("id", "name.ext"); see Custom blocks.

More in Data