NEML2 2.1.0
Loading...
Searching...
No Matches
neml2.pyzag.interface Namespace Reference

Classes

class  NEML2PyzagModel

Functions

typing.Tuple[str, int] lag_order (str var)
str change_lag_order (str var, int new_order)

Function Documentation

◆ change_lag_order()

str change_lag_order ( str var,
int new_order )
Change the lag order of a variable name.

Args:
    var (str): The variable string, which can be in the format "var" or "var~n" where n is an integer.
    new_order (int): The new lag order to set.

Returns:
    str: The variable string with the updated lag order.

◆ lag_order()

typing.Tuple[str, int] lag_order ( str var)
Extracts the base variable name and its lag order from a variable string.

Args:
    var (str): The variable string, which can be in the format "var" or "var~n" where n is an integer.

Returns:
    tuple: A tuple containing the base variable name and its lag order.