From bd02bd306773a17370fa0f88ec5cf9bc0f48266d Mon Sep 17 00:00:00 2001 From: Daniel Busch Date: Mon, 28 Oct 2024 13:28:10 +0100 Subject: [PATCH] remove unused variables --- primap2/_convert.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/primap2/_convert.py b/primap2/_convert.py index 8b790f7..0e39164 100644 --- a/primap2/_convert.py +++ b/primap2/_convert.py @@ -389,7 +389,7 @@ def factors_categories_to_xarray( """Convert dictionary mapping categories to factors into xarray-compatible objects. Using the xarray objects ensures that in subsequent calculations, everything - will cleanly multiply reagardless of the dimensionality of the data. + will cleanly multiply regardless of the dimensionality of the data. Parameters ---------- @@ -479,13 +479,9 @@ def derive_weights( """ if operation_type == "input": operation_verb = "sum up" - trivial_sum_rule = "extensive" - nontrivial_sum_rule = "intensive" rule_cardinality = rule.cardinality_a else: operation_verb = "split" - trivial_sum_rule = "intensive" - nontrivial_sum_rule = "extensive" rule_cardinality = rule.cardinality_b # just one category or trivial sum rule, so no weights required