Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As the API has slightly changed, I updated the version from
v0.1
tov0.2
.API
v0.1
v0.2
Incompatibitlity
In v0.2, a PQ instance has a new field for "metric" (i.e.,
pq.metric
). The two PQ instancepq1
andpq2
are regarded as equal if all fields including metric are identical. Thus, a PQ instance created by v0.1 is not equal to that by v.0.2.For example, suppose that we run the following code with
nanopq==v0.1.11
Then we update the library to
nanopq==v0.2.0
. and run the followings.It causes an error:
If you face such a problem, an easy workaround is adding a "metric" field.