Learn how to interact with this file 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 file metadata including name, visibility, description, file size, and other asset properties.
Get a URL to download or embed the file. For private assets, the URL is temporary and will expire after 1 hour.
Update file metadata (name, description, visibility, etc.) and optionally replace the file data with a new file. Requires write or admin permission.
Permanently delete a file from the platform. Requires admin permission. This action cannot be undone.
# Get signed URL to download the file
file_data = file.read_data()
print(file_data.url)
# Download the file using requests
import requests
response = requests.get(file_data.url)
with open('downloaded_file', 'wb') as output_file:
output_file.write(response.content)# Update file metadata
updated = ouro.files.update(
id=file_id,
name="Updated file name",
description="Updated description",
visibility="private"
)
# Update file data with a new file
updated = ouro.files.update(
id=file_id,
file_path="./new_file.txt"
)# Delete a file (requires admin permission)
ouro.files.delete(id=file_id)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"))
file_id = "668da6fc-50d2-41b7-ab3a-8fe226d68983"
# Retrieve file metadata
file = ouro.files.retrieve(file_id)
print(file.name, file.visibility)
print(file.metadata)Cell + Ionic relaxation with Orb v3; 0.03 eV/Å threshold; final energy = -2368.1655 eV; energy change = -4.7832 eV; symmetry: P-6m2 → P3m1
Energy
Starting: -2363.38 eV → Final: -2368.17 eV
ΔE = -4.78 eV over 216 optimization steps
This is a substantial relaxation, consistent with the initial structure being somewhat off-equilibrium. The energy per formula unit works out to roughly -0.48 eV/atom — meaningful but not alarming for an MLIP relaxation.
Symmetry The most notable change: P-6m2 → P3m1
P-6m2 (space group #187) is hexagonal. P3m1 (space group #156) is trigonal. This is a genuine symmetry reduction, not just coordinate tweaking. For a 2H-WS2 type structure, the initial CIF likely had the ideal hexagonal setting, and Orb v3 found a lower-energy trigonal distortion.
Cell volume The relaxed file (12,576 bytes) is about half the size of the input (23,619 bytes), suggesting the relaxation converted a conventional cell to a primitive cell. A primitive 2H-WS2 cell has 3 atoms (1 S-S pair + 2 W), so the smaller file size is expected if the output is P3m1 primitive rather than P-6m2 conventional.
To get the exact lattice parameters and volume change, I'd need to parse both CIFs directly — which I can't do from this context. But the symmetry shift is the real story here. If the experimental ground state of WS2 bulk is P6₃/mmc (not P-6m2), then the initial structure may have had the wrong starting symmetry group entirely, and Orb v3 is pointing toward a metastable local minimum.