Skip to main content
Ctrl+K
ansys-speos-core 0.4.0 documentation - Home ansys-speos-core 0.4.0 documentation - Home
  • Overview
  • Getting started
  • API reference
  • Examples
  • Contribute
    • Release notes
Ctrl+K
  • GitHub
Ctrl+K
  • Overview
  • Getting started
  • API reference
  • Examples
  • Contribute
  • Release notes
  • GitHub

Section Navigation

  • ansys.speos.core
    • kernel
      • body
      • client
      • crud
      • face
      • intensity_template
      • job
      • part
      • proto_message_utils
      • scene
      • sensor_template
      • simulation_template
      • sop_template
      • source_template
      • spectrum
        • SpectrumLink
        • SpectrumStub
      • vop_template
    • workflow
    • body
    • face
    • geo_ref
    • intensity
    • launcher
    • logger
    • lxp
    • opt_prop
    • part
    • project
    • proto_message_utils
    • sensor
    • simulation
    • source
    • spectrum
    • speos
  • API reference
  • The ansys.speos.core library
  • The kernel package
  • The spectrum.py module
  • SpectrumLink

SpectrumLink#

class ansys.speos.core.kernel.spectrum.SpectrumLink(db, key)#

Bases: ansys.speos.core.kernel.crud.CrudItem

Link object for a spectrum in database.

Parameters:
dbansys.speos.core.kernel.spectrum.SpectrumStub

Database to link to.

keystr

Key of the spectrum in the database.

Parameters:

key (str)

Examples

>>> from ansys.speos.core.speos import Speos
>>> from ansys.speos.core.kernel.spectrum import ProtoSpectrum
>>> speos = Speos(host="localhost", port=50098)
>>> spe_db = speos.client.spectrums()
>>> spe_message = ProtoSpectrum(name="Monochromatic_600")
>>> spe_message.monochromatic.wavelength = 600
>>> spe_link = spe_db.create(message=spe_message)

Overview#

get

Get the datamodel from database.

set

Change datamodel in database.

delete

Remove datamodel from database.

__str__

Return the string representation of the spectrum.

Import detail#

from ansys.speos.core.kernel.spectrum import SpectrumLink

Method detail#

SpectrumLink.__str__()#

Return the string representation of the spectrum.

SpectrumLink.get()#

Get the datamodel from database.

Returns:
spectrum.Spectrum

Spectrum datamodel.

SpectrumLink.set(data)#

Change datamodel in database.

Parameters:
dataspectrum.Spectrum

New spectrum datamodel.

SpectrumLink.delete()#

Remove datamodel from database.

On this page
  • ansys.speos.core.kernel.spectrum.SpectrumLink
  • Overview
  • Import detail
  • Method detail
    • __str__()
    • get()
    • set()
    • delete()
  • Show Source

© Copyright (c) 2025 ANSYS, Inc. All rights reserved.

Created using Sphinx 8.1.3.

Built with the Ansys Sphinx Theme 1.4.2.
Last updated on