SocialCognitiveSystems / PRIMO

GNU Lesser General Public License v3.0
4 stars 3 forks source link

Added support for properties as meta-data #13

Closed jpoeppel closed 7 years ago

jpoeppel commented 7 years ago

XBIF supports the PROPERTY tag for meta-data on the network, the variable, and the definition level. These changes add an optional flag to the io-methods parse/write called ignoreProperties, which will ignore those fields by default (old behaviour) but which can be set to False, which will result in the properties for the network and for the variables to be stored in a new "meta" attribute. When writing these fields will again be ignored unless otherwise specified.

Since the PROPERTY tag has no structure, we are only storing the plain strings in a list in the meta attributes.

hbuschme commented 7 years ago

Looks good!