Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] DiscreteVariable reconstruction #3242

Merged
merged 4 commits into from
Sep 12, 2018

Conversation

ales-erjavec
Copy link
Contributor

Issue

Fixes gh-3238

Description of changes
  • Return proxies from DiscreteVariable.make (as already done in [FIX] Variable.make returns proxies #2667 for other variables)

  • Ensure var.values are preserved exactly on deserialization, even at the expanse of variable 'equality'. This is done to ensure any indices into the values list, that are serialized alongside the variable, retain their meaning.

Includes
  • Code changes
  • Tests
  • Documentation

This is done to ensure any indices into the `values` list, that are
serialized alongside the variable, retain their meaning.
The test fails due to the DiscreteVariable.make returning proxies
@lanzagar lanzagar added this to the 3.16 milestone Sep 12, 2018
@lanzagar lanzagar changed the title [FIX]: DiscreteVariable reconstruction [FIX] DiscreteVariable reconstruction Sep 12, 2018
@lanzagar lanzagar merged commit a95245e into biolab:master Sep 12, 2018
@ales-erjavec ales-erjavec deleted the var-reconstruct branch September 19, 2018 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants