models

A set of conveinant methods for model transforms

Models

class wtools.models.Models(**kwargs)[source]

Bases: properties.base.base.HasProperties

A container for static models

items()[source]
keys()[source]
save(filename)[source]
shape
values()[source]

TimeModels

class wtools.models.TimeModels(**kwargs)[source]

Bases: wtools.models.Models

A container for time varying models

applyMethod(method, inplace=True)[source]
getTable(idx)[source]

Returns a pandas dataframe table of all the models at a specified timestep

nt
shape

mapTable

wtools.models.mapTable(table, arr, to_dict=True, index=None)[source]

Map the values defined by table dataframe to the values in arr. If an index key is not given, then the first column (name should be Index) will be used for the mapping.