ripple-down-rules 0.4.85__py3-none-any.whl → 0.4.86__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ripple_down_rules/__init__.py +1 -1
- ripple_down_rules/rdr.py +5 -11
- {ripple_down_rules-0.4.85.dist-info → ripple_down_rules-0.4.86.dist-info}/METADATA +1 -1
- {ripple_down_rules-0.4.85.dist-info → ripple_down_rules-0.4.86.dist-info}/RECORD +7 -7
- {ripple_down_rules-0.4.85.dist-info → ripple_down_rules-0.4.86.dist-info}/WHEEL +0 -0
- {ripple_down_rules-0.4.85.dist-info → ripple_down_rules-0.4.86.dist-info}/licenses/LICENSE +0 -0
- {ripple_down_rules-0.4.85.dist-info → ripple_down_rules-0.4.86.dist-info}/top_level.txt +0 -0
ripple_down_rules/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.4.
|
1
|
+
__version__ = "0.4.86"
|
ripple_down_rules/rdr.py
CHANGED
@@ -360,15 +360,13 @@ class RDRWithCodeWriter(RippleDownRules, ABC):
|
|
360
360
|
return importlib.import_module(name).classify
|
361
361
|
|
362
362
|
@property
|
363
|
-
def _default_generated_python_file_name(self) -> str:
|
363
|
+
def _default_generated_python_file_name(self) -> Optional[str]:
|
364
364
|
"""
|
365
365
|
:return: The default generated python file name.
|
366
366
|
"""
|
367
|
-
if
|
368
|
-
|
369
|
-
|
370
|
-
name = self.start_rule.corner_case.__class__.__name__
|
371
|
-
return f"{name.lower()}_{self.attribute_name}_{self.acronym.lower()}"
|
367
|
+
if self.start_rule is None or self.start_rule.conclusion is None:
|
368
|
+
return None
|
369
|
+
return f"{self.case_type.__name__.lower()}_{self.attribute_name}_{self.acronym.lower()}"
|
372
370
|
|
373
371
|
@property
|
374
372
|
def generated_python_defs_file_name(self) -> str:
|
@@ -958,11 +956,7 @@ class GeneralRDR(RippleDownRules):
|
|
958
956
|
"""
|
959
957
|
if self.start_rule is None or self.start_rule.conclusion is None:
|
960
958
|
return None
|
961
|
-
|
962
|
-
name = self.start_rule.corner_case._name
|
963
|
-
else:
|
964
|
-
name = self.start_rule.corner_case.__class__.__name__
|
965
|
-
return f"{name}_rdr".lower()
|
959
|
+
return f"{self.case_type.__name__.lower()}_rdr".lower()
|
966
960
|
|
967
961
|
@property
|
968
962
|
def conclusion_type_hint(self) -> str:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ripple_down_rules
|
3
|
-
Version: 0.4.
|
3
|
+
Version: 0.4.86
|
4
4
|
Summary: Implements the various versions of Ripple Down Rules (RDR) for knowledge representation and reasoning.
|
5
5
|
Author-email: Abdelrhman Bassiouny <abassiou@uni-bremen.de>
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
@@ -1,9 +1,9 @@
|
|
1
|
-
ripple_down_rules/__init__.py,sha256=
|
1
|
+
ripple_down_rules/__init__.py,sha256=v-1F6x1Q2QlDiOWgzsCkkSZVyHAeRboirfjTWeRqJxo,22
|
2
2
|
ripple_down_rules/datasets.py,sha256=fJbZ7V-UUYTu5XVVpFinTbuzN3YePCnUB01L3AyZVM8,6837
|
3
3
|
ripple_down_rules/experts.py,sha256=RWDR-xxbeFIrUQiMYLEDr_PLQFdpPZ-hOXo4dpeiUpI,6630
|
4
4
|
ripple_down_rules/failures.py,sha256=E6ajDUsw3Blom8eVLbA7d_Qnov2conhtZ0UmpQ9ZtSE,302
|
5
5
|
ripple_down_rules/helpers.py,sha256=TvTJU0BA3dPcAyzvZFvAu7jZqsp8Lu0HAAwvuizlGjg,2018
|
6
|
-
ripple_down_rules/rdr.py,sha256=
|
6
|
+
ripple_down_rules/rdr.py,sha256=zQiWHUw8Qq-FPuKHdBErZUhh8zqiB6UCBi1kWZx5cJE,45511
|
7
7
|
ripple_down_rules/rdr_decorators.py,sha256=VdmE0JrE8j89b6Af1R1tLZiKfy3h1VCvhAUefN_FLLQ,6753
|
8
8
|
ripple_down_rules/rules.py,sha256=7NB8qWW7XEB45tmJRYsKJqBG8DN3v02fzAFYmOkX8ow,17458
|
9
9
|
ripple_down_rules/start-code-server.sh,sha256=otClk7VmDgBOX2TS_cjws6K0UwvgAUJhoA0ugkPCLqQ,949
|
@@ -19,8 +19,8 @@ ripple_down_rules/user_interface/ipython_custom_shell.py,sha256=24MIFwqnAhC6ofOb
|
|
19
19
|
ripple_down_rules/user_interface/object_diagram.py,sha256=tsB6iuLNEbHxp5lR2WjyejjWbnAX_nHF9xS8jNPOQVk,4548
|
20
20
|
ripple_down_rules/user_interface/prompt.py,sha256=AkkltdDIaioN43lkRKDPKSjJcmdSSGZDMYz7AL7X9lE,8082
|
21
21
|
ripple_down_rules/user_interface/template_file_creator.py,sha256=J_bBOJltc1fsrIYeHdrSUA_jep2DhDbTK5NYRbL6QyY,13831
|
22
|
-
ripple_down_rules-0.4.
|
23
|
-
ripple_down_rules-0.4.
|
24
|
-
ripple_down_rules-0.4.
|
25
|
-
ripple_down_rules-0.4.
|
26
|
-
ripple_down_rules-0.4.
|
22
|
+
ripple_down_rules-0.4.86.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
|
23
|
+
ripple_down_rules-0.4.86.dist-info/METADATA,sha256=OZ1QS5AnJFolHEoUSn_b88yB7jX2SN3Kanyr6u_Y9oY,43598
|
24
|
+
ripple_down_rules-0.4.86.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
|
25
|
+
ripple_down_rules-0.4.86.dist-info/top_level.txt,sha256=VeoLhEhyK46M1OHwoPbCQLI1EifLjChqGzhQ6WEUqeM,18
|
26
|
+
ripple_down_rules-0.4.86.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|