Closed jschalk closed 1 month ago
This pull request implements several changes across multiple files, primarily focusing on enhancing the functionality of the project's data structures, improving test coverage, and introducing new features. The changes include modifications to existing classes, addition of new classes and functions, and updates to test cases.
classDiagram
class DoarUnit {
+String __str__
+get_road_from_doar(x_doarunit: DoarUnit, delimiter: str): RoadUnit
+get_doar_from_road(x_roadunit: RoadUnit, delimiter: str): DoarUnit
}
class TempTestingObj {
+RoadUnit x_road
+find_replace_road(old_road, new_road)
}
class BudUnit {
+BitNum respect_bit
+RespectNum credor_respect
+RespectNum debtor_respect
+TimeLinePoint purview_timestamp
+OriginUnit _originunit
+dict[RoadUnit, ItemUnit] _item_dict
+set_purview_timestamp(x_purview_timestamp: TimeLinePoint)
}
class ItemAttrHolder {
+int mass
+int uid
+ReasonUnit reason
+set_premise_range_attributes_influenced_by_premise_item(premise_open, premise_nigh, premise_denom)
}
class BridgeUnit {
+String atom_arg
+dict src_to_dst
+String unknown_word
+String src_road_delimiter
+String dst_road_delimiter
+String _calc_atom_python_type
+set_atom_arg(x_atom_arg: String)
+set_all_src_to_dst(x_src_to_dst: dict, raise_exception_if_invalid: bool)
+set_src_to_dst(src_word: String, dst_word: String)
+get_src_to_dst(src_word: String): String
+src_to_dst_exists(src_word: String, dst_word: String): bool
+del_src_to_dst(src_word: String)
+is_valid(): bool
}
Change | Details | Files |
---|---|---|
Introduction of a new BridgeUnit class for data mapping and validation |
|
src/f09_filter/filter.py src/f09_filter/test/test_filter_core.py |
Addition of purview_timestamp attribute to BudUnit |
|
src/f02_bud/bud.py src/f02_bud/test_bud/test_bud_.py src/f04_gift/atom.py src/f04_gift/atom_config.json src/f04_gift/normal_models.py |
Introduction of DoarUnit class and related functions |
|
src/f01_road/road.py src/f01_road/test/test_road_doar.py |
Refactoring and renaming of various functions and variables |
|
src/f02_bud/item.py src/f02_bud/test__item/test_item_attr_holder.py src/f02_bud/test_bud/test_bud_item_crud.py src/f02_bud/test_bud_settle/test_tree_traverse_reason_team.py |
Addition of new world and filter modules |
|
src/f10_world/world.py src/f10_world/test/test_world_create.py src/f10_world/examples/world_env.py src/f09_filter/examples/filter_env.py |
Summary by Sourcery
Enable the documentation process by introducing new features such as the
DoarUnit
class andpurview_timestamp
attribute, enhancing existing classes and methods for clarity, and adding comprehensive tests for new and existing functionalities.New Features:
DoarUnit
class to represent a reverse direction RoadUnit and add functions to convert betweenDoarUnit
andRoadUnit
.purview_timestamp
to theBudUnit
class and related methods to set and handle this attribute.BridgeUnit
class in thefilter
module to manage mappings between source and destination strings with specific rules.filter
andworld
modules to validate the functionality ofBridgeUnit
andinit_fiscalunits_from_dirs
respectively.Enhancements:
ItemAttrFilter
toItemAttrHolder
and update related methods and tests to reflect this change.filter_out_missing_awardlinks_group_ids
toget_rid_of_missing_awardlinks_group_ids
.atom_config
to includepurview_timestamp
as a new optional argument forBudUnit
.Tests:
DoarUnit
functionality, including conversion functions.BridgeUnit
class to ensure correct mapping and validation of source and destination strings.init_fiscalunits_from_dirs
function in theworld
module to verify its behavior with empty directories.