String

class pyarts.arts.String(*args, **kwargs)

Basic string type

Workspace methods that require String

Workspace variables of type String

Overview

Method

readxml()

Read variable from file

Method

savexml()

Saves variable to file

Static Method

fromxml()

Create variable from file

Operator

__add__()

__add__(self, arg: object, /) -> object

Operator

__and__()

__and__(self, arg: object, /) -> object

Operator

__divmod__()

__divmod__(self, arg: object, /) -> object

Operator

__eq__()

__eq__(self, arg: object, /) -> object

Operator

__floordiv__()

__floordiv__(self, arg: object, /) -> object

Operator

__ge__()

__ge__(self, arg: object, /) -> object

Operator

__getitem__()

Get item from string

Operator

__gt__()

__gt__(self, arg: object, /) -> object

Operator

__hash__()

Allows hashing

Operator

__le__()

__le__(self, arg: object, /) -> object

Operator

__len__()

Length of the string

Operator

__lt__()

__lt__(self, arg: object, /) -> object

Operator

__matmul__()

__matmul__(self, arg: object, /) -> object

Operator

__mod__()

__mod__(self, arg: object, /) -> object

Operator

__mul__()

__mul__(self, arg: object, /) -> object

Operator

__ne__()

__ne__(self, arg: object, /) -> object

Operator

__or__()

__or__(self, arg: object, /) -> object

Operator

__pow__()

__pow__(self, arg: object, /) -> object

Operator

__radd__()

__radd__(self, arg: object, /) -> object

Operator

__rand__()

__rand__(self, arg: object, /) -> object

Operator

__rdivmod__()

__rdivmod__(self, arg: object, /) -> object

Operator

__rfloordiv__()

__rfloordiv__(self, arg: object, /) -> object

Operator

__rmatmul__()

__rmatmul__(self, arg: object, /) -> object

Operator

__rmod__()

__rmod__(self, arg: object, /) -> object

Operator

__rmul__()

__rmul__(self, arg: object, /) -> object

Operator

__ror__()

__ror__(self, arg: object, /) -> object

Operator

__rpow__()

__rpow__(self, arg: object, /) -> object

Operator

__rsub__()

__rsub__(self, arg: object, /) -> object

Operator

__rtruediv__()

__rtruediv__(self, arg: object, /) -> object

Operator

__truediv__()

__truediv__(self, arg: object, /) -> object

Constructors

__init__(self) None
__init__(self, arg: str, /) None
__init__(self, arg: pyarts.arts.String) None
__init__(self, arg: bytes, /) None

Methods

readxml(self, file: str) None

Read variable from file

Parameters:

file (str) – A file that can be read

On Error:

Throws RuntimeError for any failure to read

savexml(self, file: str, type: str = 'ascii', clobber: bool = True) None

Saves variable to file

Parameters:
  • file (str) – The path to which the file is written. Note that several of the options might modify the name or write more files

  • type (str) – Type of file to save (ascii. zascii, or binary)

  • clobber (bool) – Overwrite existing files or add new file with modified name?

On Error:

Throws RuntimeError for any failure to save

Static Methods

fromxml(file: str) pyarts.arts.String

Create variable from file

Parameters:

file (str) – A file that can be read

On Error:

Throws RuntimeError for any failure to read

Operators

__add__(self, arg: pyarts.arts.String, /) object
__add__(self, arg: object, /) object
__and__(self, arg: pyarts.arts.String, /) object
__and__(self, arg: object, /) object
__divmod__(self, arg: pyarts.arts.String, /) object
__divmod__(self, arg: object, /) object
__eq__(self, arg: pyarts.arts.String, /) object
__eq__(self, arg: object, /) object
__floordiv__(self, arg: pyarts.arts.String, /) object
__floordiv__(self, arg: object, /) object
__ge__(self, arg: pyarts.arts.String, /) object
__ge__(self, arg: object, /) object
__getitem__(self, arg: object, /) object

Get item from string

__gt__(self, arg: pyarts.arts.String, /) object
__gt__(self, arg: object, /) object
__hash__(self) int

Allows hashing

__le__(self, arg: pyarts.arts.String, /) object
__le__(self, arg: object, /) object
__len__(self) int

Length of the string

__lt__(self, arg: pyarts.arts.String, /) object
__lt__(self, arg: object, /) object
__matmul__(self, arg: pyarts.arts.String, /) object
__matmul__(self, arg: object, /) object
__mod__(self, arg: pyarts.arts.String, /) object
__mod__(self, arg: object, /) object
__mul__(self, arg: pyarts.arts.String, /) object
__mul__(self, arg: object, /) object
__ne__(self, arg: pyarts.arts.String, /) object
__ne__(self, arg: object, /) object
__or__(self, arg: pyarts.arts.String, /) object
__or__(self, arg: object, /) object
__pow__(self, arg: pyarts.arts.String, /) object
__pow__(self, arg: object, /) object
__radd__(self, arg: pyarts.arts.String, /) object
__radd__(self, arg: object, /) object
__rand__(self, arg: pyarts.arts.String, /) object
__rand__(self, arg: object, /) object
__rdivmod__(self, arg: pyarts.arts.String, /) object
__rdivmod__(self, arg: object, /) object
__rfloordiv__(self, arg: pyarts.arts.String, /) object
__rfloordiv__(self, arg: object, /) object
__rmatmul__(self, arg: pyarts.arts.String, /) object
__rmatmul__(self, arg: object, /) object
__rmod__(self, arg: pyarts.arts.String, /) object
__rmod__(self, arg: object, /) object
__rmul__(self, arg: pyarts.arts.String, /) object
__rmul__(self, arg: object, /) object
__ror__(self, arg: pyarts.arts.String, /) object
__ror__(self, arg: object, /) object
__rpow__(self, arg: pyarts.arts.String, /) object
__rpow__(self, arg: object, /) object
__rsub__(self, arg: pyarts.arts.String, /) object
__rsub__(self, arg: object, /) object
__rtruediv__(self, arg: pyarts.arts.String, /) object
__rtruediv__(self, arg: object, /) object
__truediv__(self, arg: pyarts.arts.String, /) object
__truediv__(self, arg: object, /) object