catii 1.0.4.dev1__tar.gz → 1.0.5.dev1__tar.gz

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.
Files changed (25) hide show
  1. {catii-1.0.4.dev1/src/catii.egg-info → catii-1.0.5.dev1}/PKG-INFO +1 -1
  2. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/setup.py +1 -1
  3. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/src/catii/xfuncs.py +2 -2
  4. {catii-1.0.4.dev1 → catii-1.0.5.dev1/src/catii.egg-info}/PKG-INFO +1 -1
  5. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/LICENSE +0 -0
  6. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/README.md +0 -0
  7. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/pyproject.toml +0 -0
  8. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/setup.cfg +0 -0
  9. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/src/catii/__init__.py +0 -0
  10. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/src/catii/ccubes.py +0 -0
  11. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/src/catii/ffuncs.py +0 -0
  12. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/src/catii/iindexes.py +0 -0
  13. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/src/catii/indxio.py +0 -0
  14. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/src/catii/set_operations.pyx +0 -0
  15. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/src/catii/xcubes.py +0 -0
  16. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/src/catii.egg-info/SOURCES.txt +0 -0
  17. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/src/catii.egg-info/dependency_links.txt +0 -0
  18. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/src/catii.egg-info/requires.txt +0 -0
  19. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/src/catii.egg-info/top_level.txt +0 -0
  20. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/tests/test_ccubes.py +0 -0
  21. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/tests/test_iindexes.py +0 -0
  22. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/tests/test_iindexes_nonint.py +0 -0
  23. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/tests/test_indxio.py +0 -0
  24. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/tests/test_set_operations.py +0 -0
  25. {catii-1.0.4.dev1 → catii-1.0.5.dev1}/tests/test_xcubes.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: catii
3
- Version: 1.0.4.dev1
3
+ Version: 1.0.5.dev1
4
4
  Summary: A library for N-dimensional categorical data.
5
5
  Home-page: https://github.com/Crunch-io/catii
6
6
  Author: Robert Brewer, Slobodan Ilić
@@ -28,7 +28,7 @@ with open("README.md", "r") as fh:
28
28
 
29
29
  setup(
30
30
  name="catii",
31
- version="1.0.4.dev1",
31
+ version="1.0.5.dev1",
32
32
  author="Robert Brewer, Slobodan Ilić",
33
33
  author_email="dev@crunch.io",
34
34
  description="A library for N-dimensional categorical data.",
@@ -1105,14 +1105,14 @@ class xfunc_quantile(xfunc):
1105
1105
  if self.weights.shape:
1106
1106
  w = self.weights[rowmask]
1107
1107
  else:
1108
- w = numpy.repeat(self.weights, len(rowmask))
1108
+ w = numpy.repeat(self.weights, len(seg))
1109
1109
  qs[i] = self.weighted_quantile(seg, self.probability, w)
1110
1110
 
1111
1111
  def weighted_quantile(self, arr, probability, weights):
1112
1112
  def weighted_quantile_1d(a):
1113
1113
  w = weights
1114
1114
 
1115
- ind = a.argsort()
1115
+ ind = numpy.lexsort((w, a))
1116
1116
  a = a[ind]
1117
1117
  w = w[ind]
1118
1118
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: catii
3
- Version: 1.0.4.dev1
3
+ Version: 1.0.5.dev1
4
4
  Summary: A library for N-dimensional categorical data.
5
5
  Home-page: https://github.com/Crunch-io/catii
6
6
  Author: Robert Brewer, Slobodan Ilić
File without changes
File without changes
File without changes
File without changes