datasketches 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8db863a37a8fa081bff6bf269666cdff6d4e8a4cf860a0fafac235858709f62
4
- data.tar.gz: a858071aae33a8aeb5d92cec1f4fdf4cc3cb5d12b07ed629152c953674c06dff
3
+ metadata.gz: 33b2bd41940eaa4000c00002a75f4c3e3d9096d7904381d19ccd8b206a85d67e
4
+ data.tar.gz: 32eef85b031864b51f2968b4ea3bceaafceb1293126ddb0c00c86c85e97a41b7
5
5
  SHA512:
6
- metadata.gz: 03acf7acb3ecb617713d3549e289ed5829f55bd65a52c28eaf1a603cc2e9e577f7d7ffdebd230b01d259d1116ebbef06640a1a9b1d00baa8d0e970cd31357923
7
- data.tar.gz: eb4730c27379a392b330cbdf9cf17d6d1207307e46ca2c0203b1e4eab237218115824249646f5916737af01b96b3451a373ce51c2020576af49a1da31a5070b5
6
+ metadata.gz: d473c544c65b50995ab61b81dcd2c7d061432977b19f324d9d3601344e4049db83f04cd223ceb65fcfc2ccb0bea2c54b56e7335d050df13d5d096a5795f9af2e
7
+ data.tar.gz: bfc6db62462ffbbf24217ea7c6f82d7a14986371dd2236a21e941cd8c9e03a769a9055db6589a1477e97252336535d6a26cddbcd9f0a061e35eb68799b99473b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.1 (2023-01-31)
2
+
3
+ - Updated DataSketches to 4.0.1
4
+
1
5
  ## 0.3.0 (2022-12-08)
2
6
 
3
7
  - Updated DataSketches to 4.0.0
@@ -1,3 +1,3 @@
1
1
  module DataSketches
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  Apache DataSketches C++ and Python
2
- Copyright 2022 The Apache Software Foundation
2
+ Copyright 2023 The Apache Software Foundation
3
3
 
4
4
  Copyright 2015-2018 Yahoo Inc.
5
5
  Copyright 2019-2020 Verizon Media
@@ -449,7 +449,7 @@ uint8_t cpc_compressor<A>::determine_pseudo_phase(uint8_t lg_k, uint32_t c) {
449
449
  if (lg_k < 4) throw std::logic_error("lgK < 4");
450
450
  const size_t tmp = c >> (lg_k - 4);
451
451
  const uint8_t phase = tmp & 15;
452
- if (phase < 0 || phase >= 16) throw std::out_of_range("wrong phase");
452
+ if (phase >= 16) throw std::out_of_range("wrong phase");
453
453
  return phase;
454
454
  }
455
455
  }
@@ -72,7 +72,7 @@ class vector_of_kll_sketches {
72
72
  std::string to_string(bool print_levels = false, bool print_items = false) const;
73
73
 
74
74
  // binary output/input
75
- py::list serialize(py::array_t<uint32_t>& isk);
75
+ py::list serialize(const py::array_t<int>& isk);
76
76
  // note: deserialize() replaces the sketch at the specified
77
77
  // index. Not a static method.
78
78
  void deserialize(const py::bytes& sk_bytes, uint32_t idx);
@@ -404,7 +404,7 @@ void vector_of_kll_sketches<T, C>::deserialize(const py::bytes& sk_bytes,
404
404
  }
405
405
 
406
406
  template<typename T, typename C>
407
- py::list vector_of_kll_sketches<T, C>::serialize(py::array_t<uint32_t>& isk) {
407
+ py::list vector_of_kll_sketches<T, C>::serialize(const py::array_t<int>& isk) {
408
408
  std::vector<uint32_t> inds = get_indices(isk);
409
409
  const size_t num_sketches = inds.size();
410
410
 
@@ -1 +1 @@
1
- 4.0.0
1
+ 4.0.1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datasketches
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-09 00:00:00.000000000 Z
11
+ date: 2023-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rice
@@ -342,7 +342,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
342
342
  - !ruby/object:Gem::Version
343
343
  version: '0'
344
344
  requirements: []
345
- rubygems_version: 3.3.7
345
+ rubygems_version: 3.4.1
346
346
  signing_key:
347
347
  specification_version: 4
348
348
  summary: Sketch data structures for Ruby