Skip to content

Commit aee006c

Browse files
fix formatting
1 parent 59d7266 commit aee006c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/cr/cube/matrix/measure.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,7 +1621,7 @@ def _base_values(self):
16211621
in this example (2,3).
16221622
"""
16231623
# --- Use "body" reference values for base values
1624-
(ref_props, ref_bases) = self._reference_values(0)
1624+
ref_props, ref_bases = self._reference_values(0)
16251625
return self._calculate_t_stats(
16261626
self._proportions[0][0], self._column_bases[0][0], ref_props, ref_bases
16271627
)
@@ -1709,9 +1709,9 @@ def _calculate_t_stats(self, props, bases, ref_props, ref_bases):
17091709

17101710
@lazyproperty
17111711
def _intersections(self):
1712-
"2D ndarray np.float64 of the t-stats for the intersections (4th block)" ""
1712+
"""2D ndarray np.float64 of the t-stats for the intersections (4th block)"""
17131713
# --- Use "inserted" reference values for intersections
1714-
(ref_props, ref_variance) = self._reference_values(1)
1714+
ref_props, ref_variance = self._reference_values(1)
17151715
return self._calculate_t_stats(
17161716
self._proportions[1][1], self._column_bases[1][1], ref_props, ref_variance
17171717
)
@@ -1725,7 +1725,7 @@ def _proportions(self):
17251725
def _subtotal_columns(self):
17261726
"""2D ndarray np.float64 of the values for the subtotal columns (2nd block)"""
17271727
# --- Use "body" reference values for inserted columns
1728-
(ref_props, ref_variance) = self._reference_values(0)
1728+
ref_props, ref_variance = self._reference_values(0)
17291729
return self._calculate_t_stats(
17301730
self._proportions[0][1], self._column_bases[0][1], ref_props, ref_variance
17311731
)
@@ -1734,7 +1734,7 @@ def _subtotal_columns(self):
17341734
def _subtotal_rows(self):
17351735
"""2D ndarray np.float64 of the t-stats for the subtotal rows (3rd block)"""
17361736
# --- Use "inserted" reference values for inserted rows
1737-
(ref_props, ref_variance) = self._reference_values(1)
1737+
ref_props, ref_variance = self._reference_values(1)
17381738
return self._calculate_t_stats(
17391739
self._proportions[1][0], self._column_bases[1][0], ref_props, ref_variance
17401740
)

tests/integration/test_scale_means.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def test_cat_x_cat_pruning_and_hs():
239239
np.testing.assert_almost_equal(
240240
slice_.columns_scale_mean,
241241
[1.57933884, 1.8308135, 2.10618401, 2.30460074, np.nan, 2.34680135],
242-
),
242+
)
243243
np.testing.assert_almost_equal(
244244
slice_.rows_scale_mean,
245245
[1.74213625, 2.2364515, 1.97, 2.45356177, 2.11838791, np.nan, 2.0],
@@ -268,7 +268,7 @@ def test_cat_x_cat_pruning_and_hs():
268268
slice_ = Cube(CR.CAT_HS_MT_X_CAT_HS_MT, transforms=transforms).partitions[0]
269269
np.testing.assert_almost_equal(
270270
slice_.columns_scale_mean, [1.57933884, 2.106184, 2.3046007, 2.34680135]
271-
),
271+
)
272272
np.testing.assert_almost_equal(
273273
slice_.rows_scale_mean, [1.74213625, 1.97, 2.45356177, 2.11838791, 2.0]
274274
)

0 commit comments

Comments
 (0)