flitsr.spectrum.Details

class flitsr.spectrum.Details

Bases: RecordClass

The information pertaining to and uniquely identifying a Spectrum.Element.

Parameters:
  • pname – Either the full name of the element (if no other information is given), or the path name.

  • method – The method name of the element.

  • line_no – The line number of the element.

  • extra – Any additional information related to this element; May include an index for duplicate elements.

Added in version 2.5.0.

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

constructDetails(details)

Static factory method to construct a Details object from a list of details strings (see flitsr.spectrumBuilder.SpectrumBuilder.addElement for format).

Attributes

classmethod constructDetails(details: List[str]) Details

Static factory method to construct a Details object from a list of details strings (see flitsr.spectrumBuilder.SpectrumBuilder.addElement for format).

Parameters:

details – A list of strings representing the details of a given Spectrum.Element.

Returns:

A Details object for the element details given by details.

extra: str | None
line_no: int | None
method: str | None
pname: str