Skip to main content
GET
/
oes
/
{data_id}
from atomscale import Client

client = Client(api_key="YOUR_API_KEY")
results = client.get(data_ids="d290f1ee-6c54-4b01-90e6-d701748f0851")
oes = results[0]  # OESResult
print(oes.wavelengths)
print(oes.detected_peaks)
{
  "data_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "id": "oes_001",
  "wavelengths": [400.0, 400.5, 401.0, 401.5],
  "wavelength_unit": "nm",
  "sample": [1200, 1350, 4100, 1280],
  "reference": [1100, 1150, 1180, 1120],
  "dark": [50, 52, 51, 49],
  "scope_corrected": [1150, 1298, 4049, 1231],
  "spectrum_type": "sample",
  "detected_peaks": [
    {"peak_id": "p1", "wavelength_nm": 401.0, "element": "Ga"}
  ],
  "constraint_mode": "auto",
  "constrained_elements": null,
  "spectral_metadata": {},
  "last_updated": "2024-01-15T10:35:00Z"
}
Returns the most recent processed optical emission spectroscopy (OES) result for a data entry, including the measured spectrum, reference and dark spectra, and any detected emission peaks.
data_id
string
required
The data entry UUID for the OES measurement

Response

data_id
string
Data entry UUID
id
string
OES results identifier
wavelengths
array
Wavelength values for the spectrum
wavelength_unit
string
Unit for the wavelengths values (e.g., nm)
sample
array
Measured sample spectrum intensities
reference
array
Reference spectrum intensities (if captured)
dark
array
Dark spectrum intensities used for background correction (if captured)
scope_corrected
array
Background-corrected spectrum intensities
spectrum_type
string
The type of spectrum represented by this result
detected_peaks
array
Detected emission peaks in the spectrum
constraint_mode
string
Element constraint mode applied during peak assignment: auto, include, or exclude
constrained_elements
array
Elements constrained during peak assignment (when constraint_mode is include or exclude)
spectral_metadata
object
Additional metadata about the measurement
last_updated
string
ISO 8601 timestamp of last update
from atomscale import Client

client = Client(api_key="YOUR_API_KEY")
results = client.get(data_ids="d290f1ee-6c54-4b01-90e6-d701748f0851")
oes = results[0]  # OESResult
print(oes.wavelengths)
print(oes.detected_peaks)
{
  "data_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "id": "oes_001",
  "wavelengths": [400.0, 400.5, 401.0, 401.5],
  "wavelength_unit": "nm",
  "sample": [1200, 1350, 4100, 1280],
  "reference": [1100, 1150, 1180, 1120],
  "dark": [50, 52, 51, 49],
  "scope_corrected": [1150, 1298, 4049, 1231],
  "spectrum_type": "sample",
  "detected_peaks": [
    {"peak_id": "p1", "wavelength_nm": 401.0, "element": "Ga"}
  ],
  "constraint_mode": "auto",
  "constrained_elements": null,
  "spectral_metadata": {},
  "last_updated": "2024-01-15T10:35:00Z"
}