Several utility functions are used throughout sisl.
Range routines
|
Parse a string as though it was a slice and map all entries using |
|
Accept a string and return the casted tuples of content based on ranges. |
|
Convert a |
|
Returns the range with both ends includede |
|
Convert a list of elements into a string of ranges |
|
Parses a filename string into the filename and the indices. |
Miscellaneous routines
|
Split into a tuple of name and specifier, delimited by |
|
Index coordinate transformation from int/str to an integer |
Convert arguments to an iterable-like (any iterable, default to list) |
|
|
Convert the input string to an angle, either radians or degrees. |
|
Generator for iterating a shape by returning consecutive slices |
|
Evaluate a mathematical expression using a safe evaluation method |
|
Locate x in ref by examining |