Skip to content

Commit

Permalink
remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
crdanielbusch committed Oct 28, 2024
1 parent 045bd43 commit bd02bd3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions primap2/_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bd02bd3

Please sign in to comment.