Closed jschalk closed 2 weeks ago
This PR implements functionality to build fiscal units from DataFrames and adds example data for testing. The implementation includes a new function to create fiscal units from various DataFrame inputs and comprehensive test cases to verify the functionality.
classDiagram
class FiscalUnit {
+String fiscal_id
+String fiscals_dir
+Timeline timeline
+int current_time
+int fund_coin
+int respect_bit
+int penny
+String road_delimiter
}
class Timeline {
+List hours_config
+List months_config
+List weekdays_config
+String timeline_label
+int c400_number
+int monthday_distortion
+int yr1_jan1_offset
}
class DataFrame {
+List fiscal_id
+List hour_label
+List cumlative_minute
+List month_label
+List cumlative_day
+List weekday_label
}
FiscalUnit --> Timeline
fiscal_build_from_df --> DataFrame
fiscal_build_from_df --> FiscalUnit
fiscal_build_from_df : +fiscal_build_from_df(DataFrame br00000_df, DataFrame br00001_df, DataFrame br00002_df, DataFrame br00003_df, DataFrame br00004_df, DataFrame br00005_df, int x_fund_coin, int x_respect_bit, int x_penny, String x_fiscals_dir, String slash_text)
Change | Details | Files |
---|---|---|
Added new function to build fiscal units from DataFrames |
|
src/f09_brick/brick.py |
Added example data module for testing |
|
src/f09_brick/examples/brick_df_examples.py |
Added test cases for fiscal unit building functionality |
|
src/f09_brick/test_fiscal_build/test_brick_fiscal_build.py |
Added commented example code for database operations |
|
src/f10_world/world_tool.py |
Summary by Sourcery
Add functionality to build fiscal units from dataframes and provide examples and tests to validate the process.
New Features:
fiscal_build_from_df
function to construct fiscal units from multiple dataframes, enabling more complex fiscal data processing.Enhancements:
brick_df_examples.py
to demonstrate the structure and usage of fiscal data.Tests:
fiscal_build_from_df
function to ensure it correctly constructs fiscal units from provided dataframes.