mtiller / recon

Web and network friendly simulation data formats
MIT License
8 stars 4 forks source link

Metadata handling is messy and inconsistent #15

Closed xogeny closed 10 years ago

xogeny commented 10 years ago

Variable metadata is not done in a "pythonic" way and objects don't really have any metadata support.

xogeny commented 10 years ago

As a summary, the current approach is as follows:

When creating things (meld files, wall files, tables, signals, aliases, objects), any metadata must be specified at creation time.

When reading things, all of these objects will have a ".metadata" field that you can access as a plain dictionary for metadata. In the case of a table, there is an additional ".var_metadata" field that is a dictionary where the signal name is the key and which returns the metadata for that signals as a dictionary.