-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert floats representing integers to int in sample set serialization
- Loading branch information
1 parent
e5a8e3b
commit 7b75d7f
Showing
4 changed files
with
153 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
releasenotes/notes/sampleset-serialization-replace-float-with-int-5a3133c66480b8f4.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
features: | ||
- | | ||
Implement ``SampleSet`` serialization schema version 3.2.0. | ||
Version 3.2.0 replaces ``float`` values that represent integers with ``int`` | ||
in the ``"data"`` field of any arrays returned by ``SampleSet.to_serializable()``. | ||
In some pathological cases this can result in a much smaller representation | ||
when the data dictionaries are json-serialized by avoiding the redundant | ||
``.0`` appended to every value. | ||
This is a backwards-compatible change. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters