String
- class pyarts3.arts.String(*args, **kwargs)
Basic string type
Sizes
A variable
xof this group may name 1 dimension, read asx.size().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, /) -> objectOperator
__and__(self, arg: object, /) -> objectOperator
__divmod__(self, arg: object, /) -> objectOperator
__eq__(self, arg: object, /) -> objectOperator
__floordiv__(self, arg: object, /) -> objectOperator
__format__(self, arg: str, /) -> strOperator
__ge__(self, arg: object, /) -> objectOperator
Get item from string
Operator
__gt__(self, arg: object, /) -> objectOperator
Allows hashing
Operator
__init__(self, arg: bytes, /) -> NoneOperator
__le__(self, arg: object, /) -> objectOperator
Length of the string
Operator
__lt__(self, arg: object, /) -> objectOperator
__matmul__(self, arg: object, /) -> objectOperator
__mod__(self, arg: object, /) -> objectOperator
__mul__(self, arg: object, /) -> objectOperator
__ne__(self, arg: object, /) -> objectOperator
__or__(self, arg: object, /) -> objectOperator
__pow__(self, arg: object, /) -> objectOperator
__radd__(self, arg: object, /) -> objectOperator
__rand__(self, arg: object, /) -> objectOperator
__rdivmod__(self, arg: object, /) -> objectOperator
__repr__(self) -> strOperator
__rfloordiv__(self, arg: object, /) -> objectOperator
__rmatmul__(self, arg: object, /) -> objectOperator
__rmod__(self, arg: object, /) -> objectOperator
__rmul__(self, arg: object, /) -> objectOperator
__ror__(self, arg: object, /) -> objectOperator
__rpow__(self, arg: object, /) -> objectOperator
__rsub__(self, arg: object, /) -> objectOperator
__rtruediv__(self, arg: object, /) -> objectOperator
__str__(self) -> strOperator
__truediv__(self, arg: object, /) -> objectConstructors
- __init__(self) None
- __init__(self, arg: str, /) None
- __init__(self, arg: 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
FileTypefor 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) 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:
Operators