Module CompAero.greek_letters

Contains dataclass for converting Greek letters to strings

Expand source code
"""Contains dataclass for converting Greek letters to strings"""

from dataclasses import dataclass


@dataclass
class UpperCaseGreek:
    """Class that maps uppercase unicode greek letter values"""

    # pylint: disable=too-many-instance-attributes

    alpha: str = "\u0391"
    beta: str = "\u0392"
    gamma: str = "\u0393"
    delta: str = "\u0394"
    epsilon: str = "\u0395"
    zeta: str = "\u0396"
    eta: str = "\u0397"
    theta: str = "\u0398"
    iota: str = "\u0399"
    kappa: str = "\u039A"
    lamda: str = "\u039B"
    mu: str = "\u039C"
    nu: str = "\u039D"
    xi: str = "\u039E"
    omicron: str = "\u039F"
    pi: str = "\u03A0"
    rho: str = "\u03A1"
    sigma: str = "\u03A3"
    tau: str = "\u03A4"
    upsilon: str = "\u03A5"
    phi: str = "\u03A6"
    chi: str = "\u03A7"
    psi: str = "\u03A8"
    omega: str = "\u03A9"
    symbol: str = "\u03F4"


@dataclass
class LowerCaseGreek:
    """Class that maps lowercase unicode greek letter values"""

    # pylint: disable=too-many-instance-attributes

    alpha: str = "\u03B1"
    beta: str = "\u03B2"
    gamma: str = "\u03B3"
    delta: str = "\u03B4"
    epsilon: str = "\u03B5"
    zeta: str = "\u03B6"
    eta: str = "\u03B7"
    theta: str = "\u03B8"
    iota: str = "\u03B9"
    kappa: str = "\u03BA"
    lamda: str = "\u03BB"
    mu: str = "\u03BC"
    nu: str = "\u03BD"
    xi: str = "\u03BE"
    omicron: str = "\u03BF"
    pi: str = "\u03C0"
    rho: str = "\u03C1"
    sigma: str = "\u03C2"
    tau: str = "\u03C3"
    upsilon: str = "\u03C4"
    phi: str = "\u03C5"
    chi: str = "\u03C6"
    psi: str = "\u03C7"
    omega: str = "\u03C8"
    symbol: str = "\u03C9"


@dataclass
class Misc:
    """Class that stores misc characters such as the degree symbol"""

    degree: str = "\u00b0"

Classes

class LowerCaseGreek (alpha: str = 'α', beta: str = 'β', gamma: str = 'γ', delta: str = 'δ', epsilon: str = 'ε', zeta: str = 'ζ', eta: str = 'η', theta: str = 'θ', iota: str = 'ι', kappa: str = 'κ', lamda: str = 'λ', mu: str = 'μ', nu: str = 'ν', xi: str = 'ξ', omicron: str = 'ο', pi: str = 'π', rho: str = 'ρ', sigma: str = 'ς', tau: str = 'σ', upsilon: str = 'τ', phi: str = 'υ', chi: str = 'φ', psi: str = 'χ', omega: str = 'ψ', symbol: str = 'ω')

Class that maps lowercase unicode greek letter values

Expand source code
@dataclass
class LowerCaseGreek:
    """Class that maps lowercase unicode greek letter values"""

    # pylint: disable=too-many-instance-attributes

    alpha: str = "\u03B1"
    beta: str = "\u03B2"
    gamma: str = "\u03B3"
    delta: str = "\u03B4"
    epsilon: str = "\u03B5"
    zeta: str = "\u03B6"
    eta: str = "\u03B7"
    theta: str = "\u03B8"
    iota: str = "\u03B9"
    kappa: str = "\u03BA"
    lamda: str = "\u03BB"
    mu: str = "\u03BC"
    nu: str = "\u03BD"
    xi: str = "\u03BE"
    omicron: str = "\u03BF"
    pi: str = "\u03C0"
    rho: str = "\u03C1"
    sigma: str = "\u03C2"
    tau: str = "\u03C3"
    upsilon: str = "\u03C4"
    phi: str = "\u03C5"
    chi: str = "\u03C6"
    psi: str = "\u03C7"
    omega: str = "\u03C8"
    symbol: str = "\u03C9"

Class variables

var alpha : str
var beta : str
var chi : str
var delta : str
var epsilon : str
var eta : str
var gamma : str
var iota : str
var kappa : str
var lamda : str
var mu : str
var nu : str
var omega : str
var omicron : str
var phi : str
var pi : str
var psi : str
var rho : str
var sigma : str
var symbol : str
var tau : str
var theta : str
var upsilon : str
var xi : str
var zeta : str
class Misc (degree: str = '°')

Class that stores misc characters such as the degree symbol

Expand source code
@dataclass
class Misc:
    """Class that stores misc characters such as the degree symbol"""

    degree: str = "\u00b0"

Class variables

var degree : str
class UpperCaseGreek (alpha: str = 'Α', beta: str = 'Β', gamma: str = 'Γ', delta: str = 'Δ', epsilon: str = 'Ε', zeta: str = 'Ζ', eta: str = 'Η', theta: str = 'Θ', iota: str = 'Ι', kappa: str = 'Κ', lamda: str = 'Λ', mu: str = 'Μ', nu: str = 'Ν', xi: str = 'Ξ', omicron: str = 'Ο', pi: str = 'Π', rho: str = 'Ρ', sigma: str = 'Σ', tau: str = 'Τ', upsilon: str = 'Υ', phi: str = 'Φ', chi: str = 'Χ', psi: str = 'Ψ', omega: str = 'Ω', symbol: str = 'ϴ')

Class that maps uppercase unicode greek letter values

Expand source code
@dataclass
class UpperCaseGreek:
    """Class that maps uppercase unicode greek letter values"""

    # pylint: disable=too-many-instance-attributes

    alpha: str = "\u0391"
    beta: str = "\u0392"
    gamma: str = "\u0393"
    delta: str = "\u0394"
    epsilon: str = "\u0395"
    zeta: str = "\u0396"
    eta: str = "\u0397"
    theta: str = "\u0398"
    iota: str = "\u0399"
    kappa: str = "\u039A"
    lamda: str = "\u039B"
    mu: str = "\u039C"
    nu: str = "\u039D"
    xi: str = "\u039E"
    omicron: str = "\u039F"
    pi: str = "\u03A0"
    rho: str = "\u03A1"
    sigma: str = "\u03A3"
    tau: str = "\u03A4"
    upsilon: str = "\u03A5"
    phi: str = "\u03A6"
    chi: str = "\u03A7"
    psi: str = "\u03A8"
    omega: str = "\u03A9"
    symbol: str = "\u03F4"

Class variables

var alpha : str
var beta : str
var chi : str
var delta : str
var epsilon : str
var eta : str
var gamma : str
var iota : str
var kappa : str
var lamda : str
var mu : str
var nu : str
var omega : str
var omicron : str
var phi : str
var pi : str
var psi : str
var rho : str
var sigma : str
var symbol : str
var tau : str
var theta : str
var upsilon : str
var xi : str
var zeta : str