Learn how to interact with this dataset using the Ouro SDK or REST API.
API access requires an API key. Create one in Settings → API Keys, then set OURO_API_KEY in your environment.
Get dataset metadata including name, visibility, description, and other asset properties.
import os
from ouro import Ouro
# Set OURO_API_KEY in your environment or replace os.environ.get("OURO_API_KEY")
ouro = Ouro(api_key=os.environ.get("OURO_API_KEY"))
dataset_id = "01a0ef70-d51b-7609-bd2c-66d191bb29dc"
# Retrieve dataset metadata
dataset = ouro.datasets.retrieve(dataset_id)
print(dataset.name, dataset.visibility)
print(dataset.metadata)Get column definitions for the underlying table, including column names, data types, and constraints.
| Column | Type |
|---|---|
| abacus_device | text |
| abacus_solver | text |
| bench_case | text |
| config | text |
| est_cost_usd | double precision |
| formula | text |
| gpu_util_scf_pct | double precision |
| gpu_util_tb2j_pct | double precision |
| hardware | text |
| id | uuid |
| kmesh | text |
| mae_mev_per_fu | double precision |
| n_atoms | bigint |
| note | text |
| process_layout | text |
| soc_step_s | double precision |
| tb2j_band_energy_s | double precision |
| tb2j_band_window | text |
| tb2j_kernel | text |
| tb2j_scf_s | double precision |
| wall_s | double precision |
Fetch the dataset's rows. Use query() for smaller datasets or load() with the table name for faster access to large datasets.
Update dataset metadata (visibility, description, etc.) and optionally write new rows to the table. Writing new data will replace the existing data in the table. Requires write or admin permission on the dataset.
# Get column definitions for the underlying table
columns = ouro.datasets.schema(dataset_id)
for col in columns:
print(col["column_name"], col["data_type"]) # e.g., age integer, name text# Option 1: All rows as a Pandas DataFrame
df = ouro.datasets.query(dataset_id)
print(df.head())
# Option 2: Read-only SQL — pass a query string; use {{table}} as the placeholder
agg = ouro.datasets.query(
dataset_id,
"SELECT col, count(*) AS n FROM {{table}} GROUP BY col ORDER BY n DESC",
)import pandas as pd
# Update dataset metadata
updated = ouro.datasets.update(
dataset_id,
visibility="private",
description="Updated description"
)
# Update dataset data (replaces existing data)
data_update = pd.DataFrame([
{"name": "Charlie", "age": 33},
{"name": "Diana", "age": 28},
])
updated = ouro.datasets.update(dataset_id, data=data_update)Wall time, per-stage timing, GPU utilisation and cost for the /dft/magnetic/mae (TB2J) route. Cases are L1₀ FePt (2 and 16 atoms) and ferrimagnetic GdCo₅. Runs compare A100 and CPU workers, the ELPA, genelpa and cusolver solvers, and MPI process layouts, before and after the TB2J kernel rewrite. Every run in a case must give the same MAE. MAE values here still use TB2J's former 5.1 eV band cut; the accuracy dataset has the corrected values. Costs use Modal list prices.