Addresses https://github.com/AquaticEcoDynamics/glm-py/issues/1 by adding the nml_array() static method to the nml module. nml_array() expects list of lists - similarly to how a 2D array is created with NumPy. The number of inner lists equals the array rows and the length of each list equals the array columns. An optional syntax_func parameter can be used to format each element of the array, e.g., a boolean or string array. Tests updated.
Addresses https://github.com/AquaticEcoDynamics/glm-py/issues/1 by adding the
nml_array()
static method to thenml
module.nml_array()
expects list of lists - similarly to how a 2D array is created with NumPy. The number of inner lists equals the array rows and the length of each list equals the array columns. An optionalsyntax_func
parameter can be used to format each element of the array, e.g., a boolean or string array. Tests updated.