Skip to content

Commit

Permalink
Organize things into smaller more focused modules
Browse files Browse the repository at this point in the history
Make `money_in` and `money_out` into folders that contain modules
relevant for those flows. This especially decomposes money_in into
smaller modules.
  • Loading branch information
countvajhula committed Nov 27, 2024
1 parent 25998ca commit e30f6eb
Show file tree
Hide file tree
Showing 13 changed files with 546 additions and 499 deletions.
2 changes: 2 additions & 0 deletions oldabe/accounting_utils.py → oldabe/accounting.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def correct_rounding_error(attributions, incoming_attribution):


def assert_attributions_normalized(attributions):
""" A complete set of attributions must be normalized, i.e. must add up to
1. This raises an error if the provided attributions are not normalized."""
print(_get_attributions_total(attributions))
assert _get_attributions_total(attributions) == Decimal("1")

Expand Down
Loading

0 comments on commit e30f6eb

Please sign in to comment.