Closed jschalk closed 1 month ago
This pull request implements several changes to the finance and budgeting system, focusing on refactoring and enhancing the OutlayEvent and HubUnit classes. The changes include introducing a new 'purview' attribute, updating method signatures, and improving the calculation of timepoint outlays.
No sequence diagrams generated as the changes look simple and do not need a visual representation.
Change | Details | Files |
---|---|---|
Introduced 'purview' attribute to OutlayEvent class |
|
src/f1_road/finance_outlay.py src/f1_road/test/test_finance_outlay.py |
Refactored HubUnit class to improve outlay calculations |
|
src/f5_listen/hubunit.py src/f5_listen/test_hubunit/test_hubunit_timeline.py |
Updated test cases to reflect changes in OutlayEvent and HubUnit classes |
|
src/f1_road/test/test_finance_outlay.py src/f5_listen/test_hubunit/test_hubunit_timeline.py |
Renamed and updated bud_tool functions |
|
src/f2_bud/bud_tool.py src/f2_bud/test_bud_tool/test_get_outlays.py |
Added new example functions and updated existing ones |
|
src/f5_listen/examples/example_listen_buds.py src/f5_listen/examples/example_listen_outlays.py |
Summary by Sourcery
Refactor the
OutlayEvent
class to replace_magnitude
withpurview
, update related methods and tests, and enhance thehubunit
class with new methods for handling outlay calculations and file retrievals.Enhancements:
OutlayEvent
class to include a newpurview
attribute, replacing the previous_magnitude
attribute in various methods and tests.get_outlay_file
in thehubunit
class to retrieve outlay files based on a timestamp.calc_timepoint_outlay
in thehubunit
class to calculate outlays for a specific timepoint, ensuring the presence of a BudPoint file.calc_timepoint_outlays
in thehubunit
class to calculate outlays for all timepoints.get_bud_settle_net_dict
function toget_bud_settle_acct_net_dict
for clarity and consistency.Tests:
HubUnit
to verify the functionality ofget_outlay_file
,get_budpoint_file
,calc_timepoint_outlay
, andcalc_timepoint_outlays
methods.OutlayEvent
class, particularly the transition from_magnitude
topurview
.