def get_one_element(pos): """Call the U2 Subroutine that looks at the named common as one dim Array and get one element, please note that MV counting of array elements starts with 1""" get_it = u2py.call("GET_ONE_ELEMENT", pos, "") dynArray = get_it[1].to_list() return dynArray
def set_dynArray(dimArray): """ Update the named common with the contents of the nested list. This sets the DYNARRAY into common by sending data to the SET_NC_MIKE routine.""" to_pass = u2py.DynArray(dimArray) set_iT = u2py.call("SET_NC_MIKE", "DYNARRAY", to_pass)
def get_dynArray(): """This function returns the named common dynamic array as a Python nested list. It calls the GET_NC_MIKE routine, and retrived the entire DYNARRAY.""" get_it = u2py.call("GET_NC_MIKE", "DYNARRAY", "") dynArray = get_it[1].to_list() return dynArray
def set_one_element(pos, the_data): """Call the U2 Subroutine that looks at the named common as one dim Array and set one element, please note that MV counting of array elements starts with 1""" to_pass = u2py.DynArray(the_data) get_it = u2py.call("SET_ONE_ELEMENT", pos, to_pass)