String
- class pyarts3.arts.String(*args, **kwargs)
Basic string type
Workspace methods that require String
Overview
Method
Read variable from file.
Method
Saves variable to file.
Static Method
Create variable from file.
Operator
__add__(self, arg: object, /) -> object
Operator
__and__(self, arg: object, /) -> object
Operator
__divmod__(self, arg: object, /) -> object
Operator
__eq__(self, arg: object, /) -> object
Operator
__floordiv__(self, arg: object, /) -> object
Operator
__format__(self, arg: str, /) -> str
Operator
__ge__(self, arg: object, /) -> object
Operator
Get item from string
Operator
__getstate__(self) -> tuple[str]
Operator
__gt__(self, arg: object, /) -> object
Operator
Allows hashing
Operator
__init__(self, arg: bytes, /) -> None
Operator
__le__(self, arg: object, /) -> object
Operator
Length of the string
Operator
__lt__(self, arg: object, /) -> object
Operator
__matmul__(self, arg: object, /) -> object
Operator
__mod__(self, arg: object, /) -> object
Operator
__mul__(self, arg: object, /) -> object
Operator
__ne__(self, arg: object, /) -> object
Operator
__or__(self, arg: object, /) -> object
Operator
__pow__(self, arg: object, /) -> object
Operator
__radd__(self, arg: object, /) -> object
Operator
__rand__(self, arg: object, /) -> object
Operator
__rdivmod__(self, arg: object, /) -> object
Operator
__repr__(self) -> str
Operator
__rfloordiv__(self, arg: object, /) -> object
Operator
__rmatmul__(self, arg: object, /) -> object
Operator
__rmod__(self, arg: object, /) -> object
Operator
__rmul__(self, arg: object, /) -> object
Operator
__ror__(self, arg: object, /) -> object
Operator
__rpow__(self, arg: object, /) -> object
Operator
__rsub__(self, arg: object, /) -> object
Operator
__rtruediv__(self, arg: object, /) -> object
Operator
__setstate__(self, arg: tuple[str], /) -> None
Operator
__str__(self) -> str
Operator
__truediv__(self, arg: object, /) -> object
Constructors
- __init__(self) None
- __init__(self, arg: str, /) None
- __init__(self, arg: pyarts3.arts.String) None
- __init__(self, arg: bytes, /) None
Methods
- readxml(self, file: str) str
Read variable from file.
- Parameters:
file (str) – A file that can be read.
- Raises:
RuntimeError – For any failure to read.
- Returns:
file – The file path found (may differ from input due to environment variables).
- Return type:
- savexml(self, file: str, type: str = 'ascii', clobber: bool = True) str
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, optional) – Type of file to save. See
FileType
for options. Defaults is “ascii”.clobber (bool, optional) – Overwrite existing files or add new file with modified name? Defaults is True.
- Raises:
RuntimeError – For any failure to write.
- Returns:
file – The file saved. May differ from input.
- Return type:
Static Methods
- fromxml(file: str) pyarts3.arts.String
Create variable from file.
- Parameters:
file (str) – A file that can be read
- Raises:
RuntimeError – For any failure to read.
- Returns:
artstype – The variable created from the file.
- Return type:
T
Operators
- __add__(self, arg: pyarts3.arts.String, /) object
- __add__(self, arg: object, /) object
- __and__(self, arg: pyarts3.arts.String, /) object
- __and__(self, arg: object, /) object
- __divmod__(self, arg: pyarts3.arts.String, /) object
- __divmod__(self, arg: object, /) object
- __eq__(self, arg: pyarts3.arts.String, /) object
- __eq__(self, arg: object, /) object
- __floordiv__(self, arg: pyarts3.arts.String, /) object
- __floordiv__(self, arg: object, /) object
- __ge__(self, arg: pyarts3.arts.String, /) object
- __ge__(self, arg: object, /) object
- __gt__(self, arg: pyarts3.arts.String, /) object
- __gt__(self, arg: object, /) object
- __init__(self) None
- __init__(self, arg: str, /) None
- __init__(self, arg: pyarts3.arts.String) None
- __init__(self, arg: bytes, /) None
- __le__(self, arg: pyarts3.arts.String, /) object
- __le__(self, arg: object, /) object
- __lt__(self, arg: pyarts3.arts.String, /) object
- __lt__(self, arg: object, /) object
- __matmul__(self, arg: pyarts3.arts.String, /) object
- __matmul__(self, arg: object, /) object
- __mod__(self, arg: pyarts3.arts.String, /) object
- __mod__(self, arg: object, /) object
- __mul__(self, arg: pyarts3.arts.String, /) object
- __mul__(self, arg: object, /) object
- __ne__(self, arg: pyarts3.arts.String, /) object
- __ne__(self, arg: object, /) object
- __or__(self, arg: pyarts3.arts.String, /) object
- __or__(self, arg: object, /) object
- __pow__(self, arg: pyarts3.arts.String, /) object
- __pow__(self, arg: object, /) object
- __radd__(self, arg: pyarts3.arts.String, /) object
- __radd__(self, arg: object, /) object
- __rand__(self, arg: pyarts3.arts.String, /) object
- __rand__(self, arg: object, /) object
- __rdivmod__(self, arg: pyarts3.arts.String, /) object
- __rdivmod__(self, arg: object, /) object
- __rfloordiv__(self, arg: pyarts3.arts.String, /) object
- __rfloordiv__(self, arg: object, /) object
- __rmatmul__(self, arg: pyarts3.arts.String, /) object
- __rmatmul__(self, arg: object, /) object
- __rmod__(self, arg: pyarts3.arts.String, /) object
- __rmod__(self, arg: object, /) object
- __rmul__(self, arg: pyarts3.arts.String, /) object
- __rmul__(self, arg: object, /) object
- __ror__(self, arg: pyarts3.arts.String, /) object
- __ror__(self, arg: object, /) object
- __rpow__(self, arg: pyarts3.arts.String, /) object
- __rpow__(self, arg: object, /) object
- __rsub__(self, arg: pyarts3.arts.String, /) object
- __rsub__(self, arg: object, /) object
- __rtruediv__(self, arg: pyarts3.arts.String, /) object
- __rtruediv__(self, arg: object, /) object
- __truediv__(self, arg: pyarts3.arts.String, /) object
- __truediv__(self, arg: object, /) object