AquaticEcoDynamics / glm-py

Python tools for running General Lake Model (GLM) simulations.
https://aquaticecodynamics.github.io/glm-py/
GNU General Public License v3.0
4 stars 1 forks source link

nml_array #2

Closed gilesknight closed 6 months ago

gilesknight commented 6 months ago

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.