konrad.cloud.Cloud.create_variable¶
- Cloud.create_variable(name, data=None, dims=None)¶
Create a variable in the model component.
- Parameters
Example
>>> c = Component() >>> arr = np.arange(5) >>> c.create_variable('foo', data=arr, dims=('index',)) >>> c['foo'] array([0, 1, 2, 3, 4])