ArrayOfString
- class pyarts.arts.ArrayOfString(*args, **kwargs)
A list of
String
Workspace methods that can generate ArrayOfString
Workspace methods that require ArrayOfString
Overview
Method
Append arg to the end of the list.
Method
Remove all items from list.
Method
Return number of occurrences of arg.
Method
Extend self by appending elements from arg.
Method
Return first occurence of value between start and end - defaults to full range
Method
Insert object arg1 before index arg0.
Method
Remove and return item at index (default last).
Method
Read variable from file
Method
Remove first occurrence of arg.
Method
Saves variable to file
Static Method
Create variable from file
Operator
Overloaded function.
Operator
Overloaded function.
Operator
self == other
Operator
Return self>=value.
Operator
Overloaded function.
Operator
__getstate__(self) -> tuple[pyarts.arts.ArrayOfString]
Operator
Return self>value.
Operator
Return hash(self).
Operator
Allows iter(self)
Operator
Return self<=value.
Operator
Return the number of items in the list.
Operator
Return self<value.
Operator
self != other
Operator
Overloaded function.
Operator
__setstate__(self, arg: tuple[pyarts.arts.ArrayOfString]) -> None
Constructors
- __init__(self) None
- __init__(self, arg: pyarts.arts.ArrayOfString) None
- __init__(self, arg: collections.abc.Iterable[pyarts.arts.String], /) None
- __init__(self) None
- __init__(self, arg: pyarts.arts.ArrayOfString) None
Overloaded function.
__init__(self) -> None
Default constructor
__init__(self, arg: pyarts.arts.ArrayOfString) -> None
Copy constructor
__init__(self, arg: collections.abc.Iterable[pyarts.arts.String], /) -> None
Construct from an iterable object
__init__(self) -> None
__init__(self, arg: pyarts.arts.ArrayOfString) -> None
Methods
- extend(self, arg: pyarts.arts.ArrayOfString, /) None
Extend self by appending elements from arg.
- index(self, value: str, start: int = 0, end: int = 18446744073709551615) int
Return first occurence of value between start and end - defaults to full range
- 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:
- On Error:
Throws RuntimeError for any failure to save
Static Methods
- fromxml(file: str) pyarts.arts.ArrayOfString
Create variable from file
- Parameters:
file (str) – A file that can be read
- On Error:
Throws RuntimeError for any failure to read
Operators
- __contains__(self, arg: str, /) bool
- __contains__(self, arg: object, /) bool
Overloaded function.
__contains__(self, arg: str, /) -> bool
Return true if arg is in the list.
__contains__(self, arg: object, /) -> bool
Return false.
- __delitem__(self, i: int) None
- __delitem__(self, slice: slice) None
Overloaded function.
__delitem__(self, i: int) -> None
Remove the i-th item from the list.
__delitem__(self, slice: slice) -> None
Remove a slice of the list.
- __eq__(self, arg: pyarts.arts.ArrayOfString, /) bool
self == other
- __ge__(value, /)
Return self>=value.
- __getitem__(self, i: int) str
- __getitem__(self, slice: slice) pyarts.arts.ArrayOfString
Overloaded function.
__getitem__(self, i: int) -> str
Return the i-th item.
__getitem__(self, slice: slice) -> pyarts.arts.ArrayOfString
Return a slice of the list.
- __getstate__(self) tuple[pyarts.arts.ArrayOfString]
- __gt__(value, /)
Return self>value.
- __hash__()
Return hash(self).
- __iter__(self) collections.abc.Iterator[str]
Allows iter(self)
- __le__(value, /)
Return self<=value.
- __lt__(value, /)
Return self<value.
- __ne__(self, arg: pyarts.arts.ArrayOfString, /) bool
self != other
- __setitem__(self, i: int, value: str) None
- __setitem__(self, slice: slice, value: pyarts.arts.ArrayOfString) None
Overloaded function.
__setitem__(self, i: int, value: str) -> None
Set the i-th item to value.
__setitem__(self, slice: slice, value: pyarts.arts.ArrayOfString) -> None
Set a slice of the list.
- __setstate__(self, arg: tuple[pyarts.arts.ArrayOfString]) None