ripple-down-rules 0.6.30__py3-none-any.whl → 0.6.31__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.
@@ -1,4 +1,4 @@
1
- __version__ = "0.6.30"
1
+ __version__ = "0.6.31"
2
2
 
3
3
  import logging
4
4
  logger = logging.Logger("rdr")
@@ -282,16 +282,16 @@ class Rule(NodeMixin, SubclassJSONSerializer, ABC):
282
282
  pass
283
283
 
284
284
  def _to_json(self) -> Dict[str, Any]:
285
- try:
286
- corner_case = SubclassJSONSerializer.to_json_static(self.corner_case) if self.corner_case else None
287
- except Exception as e:
288
- logging.debug("Failed to serialize corner case to json, setting it to None. Error: %s", e)
289
- corner_case = None
285
+ # try:
286
+ # corner_case = SubclassJSONSerializer.to_json_static(self.corner_case) if self.corner_case else None
287
+ # except Exception as e:
288
+ # logging.debug("Failed to serialize corner case to json, setting it to None. Error: %s", e)
289
+ # corner_case = None
290
290
  json_serialization = {"_type": get_full_class_name(type(self)),
291
291
  "conditions": self.conditions.to_json(),
292
292
  "conclusion": conclusion_to_json(self.conclusion),
293
293
  "parent": self.parent.json_serialization if self.parent else None,
294
- "corner_case": corner_case,
294
+ # "corner_case": corner_case,
295
295
  "conclusion_name": self.conclusion_name,
296
296
  "weight": self.weight,
297
297
  "uid": self.uid}
@@ -299,15 +299,15 @@ class Rule(NodeMixin, SubclassJSONSerializer, ABC):
299
299
 
300
300
  @classmethod
301
301
  def _from_json(cls, data: Dict[str, Any]) -> Rule:
302
- try:
303
- corner_case = Case.from_json(data["corner_case"])
304
- except Exception as e:
305
- logging.debug("Failed to load corner case from json, setting it to None.")
306
- corner_case = None
302
+ # try:
303
+ # corner_case = Case.from_json(data["corner_case"])
304
+ # except Exception as e:
305
+ # logging.debug("Failed to load corner case from json, setting it to None.")
306
+ # corner_case = None
307
307
  loaded_rule = cls(conditions=CallableExpression.from_json(data["conditions"]),
308
308
  conclusion=CallableExpression.from_json(data["conclusion"]),
309
309
  parent=cls.from_json(data["parent"]),
310
- corner_case=corner_case,
310
+ # corner_case=corner_case,
311
311
  conclusion_name=data["conclusion_name"],
312
312
  weight=data["weight"],
313
313
  uid=data["uid"])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ripple_down_rules
3
- Version: 0.6.30
3
+ Version: 0.6.31
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=97mtCfVEw1HwkdrprDGcbF2yNl3fqkWb_6oSEj-rOFo,99
1
+ ripple_down_rules/__init__.py,sha256=mH0F3aSoNRROyyjLKJo4D1dALPyoYh-J-mPNT1HudhU,99
2
2
  ripple_down_rules/experts.py,sha256=KXwWCmDrCffu9HW3yNewqWc1e5rnPI5Rnc981w_5M7U,17896
3
3
  ripple_down_rules/helpers.py,sha256=X1psHOqrb4_xYN4ssQNB8S9aRKKsqgihAyWJurN0dqk,5499
4
4
  ripple_down_rules/rdr.py,sha256=KsZbAbOs8U2PL19YOjFqSer8coXkSMDL3ztIrWHmTCA,62833
5
5
  ripple_down_rules/rdr_decorators.py,sha256=xoBGsIJMkJYUdsrsEaPZqoAsGuXkuVZAKCoP-xD2Iv8,11668
6
- ripple_down_rules/rules.py,sha256=W-y4aGKrGn2Xc7fbn1PNyz_jUzufFMtYwhLYiST28Ww,29213
6
+ ripple_down_rules/rules.py,sha256=tmGJ5m9Z_d_qoRaWvRjDnl5AAVDgC_qeHGKAKN7WP64,29237
7
7
  ripple_down_rules/start-code-server.sh,sha256=otClk7VmDgBOX2TS_cjws6K0UwvgAUJhoA0ugkPCLqQ,949
8
8
  ripple_down_rules/utils.py,sha256=1fiSF4MOaOUrxlMz8sZA_e10258sMWuX5fG9WDawd2o,76674
9
9
  ripple_down_rules/datastructures/__init__.py,sha256=V2aNgf5C96Y5-IGghra3n9uiefpoIm_QdT7cc_C8cxQ,111
@@ -17,8 +17,8 @@ ripple_down_rules/user_interface/ipython_custom_shell.py,sha256=RLdPqPxx-a0Sh74U
17
17
  ripple_down_rules/user_interface/object_diagram.py,sha256=FEa2HaYR9QmTE6NsOwBvZ0jqmu3DKyg6mig2VE5ZP4Y,4956
18
18
  ripple_down_rules/user_interface/prompt.py,sha256=WPbw_8_-8SpF2ISyRZRuFwPKBEuGC4HaX3lbCPFHhh8,10314
19
19
  ripple_down_rules/user_interface/template_file_creator.py,sha256=uSbosZS15MOR3Nv7M3MrFuoiKXyP4cBId-EK3I6stHM,13660
20
- ripple_down_rules-0.6.30.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
21
- ripple_down_rules-0.6.30.dist-info/METADATA,sha256=5y9rt2-t0p_N1BJt2_fMrLzYk0KZl5W8uDDB27LHiWw,48294
22
- ripple_down_rules-0.6.30.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
- ripple_down_rules-0.6.30.dist-info/top_level.txt,sha256=VeoLhEhyK46M1OHwoPbCQLI1EifLjChqGzhQ6WEUqeM,18
24
- ripple_down_rules-0.6.30.dist-info/RECORD,,
20
+ ripple_down_rules-0.6.31.dist-info/licenses/LICENSE,sha256=ixuiBLtpoK3iv89l7ylKkg9rs2GzF9ukPH7ynZYzK5s,35148
21
+ ripple_down_rules-0.6.31.dist-info/METADATA,sha256=HRME3boNiuoTqo98-gzH7aK2-KCfc561e2eDDi09bhw,48294
22
+ ripple_down_rules-0.6.31.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
+ ripple_down_rules-0.6.31.dist-info/top_level.txt,sha256=VeoLhEhyK46M1OHwoPbCQLI1EifLjChqGzhQ6WEUqeM,18
24
+ ripple_down_rules-0.6.31.dist-info/RECORD,,