Closed mpsonntag closed 4 years ago
As further basis for discussion here is an outline of the current cardinality features:
format addition
sec_cardinality
), properties (prop_cardinality
) and values (val_cardinality
)setting cardinality
(None, int)
(int, None)
, (None, int)
or (int, int)
file serialization
cardinality check options
open questions:
When we have figured out the details in the discussion, the concept will also be applied to cardinalities of Sections and Properties, yes.
I'm preparing tests for all new features and will push them once we are happy with the current state of the PR.
Pushed tests for hopefully all added features.
@jgrewe I guess you want to review the changes since your approval before merging?
This PR is supposed to show by example how a cardinality implementation (see issue #361) could look like and provides more grounds for discussion.
The current PR adds the basic cardinality implementation for Property.values. It provides
format
.Property.__init__
.val_cardinality
accessor methods.Tests will still be pushed to this PR.
The PR should serve as a basis for discussion before the cardinality feature can be extended to sections and properties as well.