Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
user_guide:extend:upgrade_rules [2019/11/13 01:12] – created gawrilow | user_guide:extend:upgrade_rules [2019/11/13 01:21] – gawrilow | ||
---|---|---|---|
Line 47: | Line 47: | ||
Upgrade rules are small perl scripts operating on polymake data in serialized form, that is, on pure perl structures like numbers, strings, anonymous lists and hashes, exactly how you see them in a JSON file. All upgrade rules applicable to data with source version M.N are stored in a file named '' | Upgrade rules are small perl scripts operating on polymake data in serialized form, that is, on pure perl structures like numbers, strings, anonymous lists and hashes, exactly how you see them in a JSON file. All upgrade rules applicable to data with source version M.N are stored in a file named '' | ||
+ | |||
+ | At the beginning, an upgrade rulefile should contain a comment block briefly describing all transformations defined there. | ||
+ | Please refer to the existing rules for suitable examples. | ||
The upgrade rules are applied to matching objects in the increasing order of target versions; the rules with equal target versions are applied in the order of definition in the rulefile. | The upgrade rules are applied to matching objects in the increasing order of target versions; the rules with equal target versions are applied in the order of definition in the rulefile. |