ripple-down-rules 0.2.1__tar.gz → 0.2.3__tar.gz

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.
Files changed (32) hide show
  1. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/PKG-INFO +2 -2
  2. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/pyproject.toml +2 -2
  3. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules.egg-info/PKG-INFO +2 -2
  4. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/test/test_rdr_alchemy.py +1 -1
  5. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/test/test_relational_rdr.py +2 -1
  6. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/test/test_relational_rdr_alchemy.py +2 -1
  7. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/LICENSE +0 -0
  8. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/README.md +0 -0
  9. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/setup.cfg +0 -0
  10. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules/__init__.py +0 -0
  11. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules/datasets.py +0 -0
  12. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules/datastructures/__init__.py +0 -0
  13. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules/datastructures/callable_expression.py +0 -0
  14. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules/datastructures/case.py +0 -0
  15. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules/datastructures/dataclasses.py +0 -0
  16. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules/datastructures/enums.py +0 -0
  17. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules/experts.py +0 -0
  18. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules/failures.py +0 -0
  19. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules/helpers.py +0 -0
  20. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules/prompt.py +0 -0
  21. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules/rdr.py +0 -0
  22. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules/rdr_decorators.py +0 -0
  23. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules/rules.py +0 -0
  24. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules/utils.py +0 -0
  25. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules.egg-info/SOURCES.txt +0 -0
  26. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules.egg-info/dependency_links.txt +0 -0
  27. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/src/ripple_down_rules.egg-info/top_level.txt +0 -0
  28. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/test/test_json_serialization.py +0 -0
  29. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/test/test_on_mutagenic.py +0 -0
  30. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/test/test_rdr.py +0 -0
  31. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/test/test_rdr_world.py +0 -0
  32. {ripple_down_rules-0.2.1 → ripple_down_rules-0.2.3}/test/test_sql_model.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ripple_down_rules
3
- Version: 0.2.1
3
+ Version: 0.2.3
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
@@ -680,7 +680,7 @@ License: GNU GENERAL PUBLIC LICENSE
680
680
  Project-URL: Homepage, https://github.com/AbdelrhmanBassiouny/ripple_down_rules
681
681
  Keywords: robotics,knowledge,reasoning,representation
682
682
  Classifier: Programming Language :: Python :: 3
683
- Requires-Python: >=3.8
683
+ Requires-Python: >=3.10
684
684
  Description-Content-Type: text/markdown
685
685
  License-File: LICENSE
686
686
  Dynamic: license-file
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "ripple_down_rules"
9
- version = "0.2.1"
9
+ version = "0.2.3"
10
10
  description = "Implements the various versions of Ripple Down Rules (RDR) for knowledge representation and reasoning."
11
11
  readme = "README.md"
12
12
  authors = [{ name = "Abdelrhman Bassiouny", email = "abassiou@uni-bremen.de" }]
@@ -16,7 +16,7 @@ classifiers = [
16
16
  ]
17
17
  keywords = ["robotics", "knowledge", "reasoning", "representation"]
18
18
  dependencies = []
19
- requires-python = ">=3.8"
19
+ requires-python = ">=3.10"
20
20
 
21
21
  [project.urls]
22
22
  Homepage = "https://github.com/AbdelrhmanBassiouny/ripple_down_rules"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ripple_down_rules
3
- Version: 0.2.1
3
+ Version: 0.2.3
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
@@ -680,7 +680,7 @@ License: GNU GENERAL PUBLIC LICENSE
680
680
  Project-URL: Homepage, https://github.com/AbdelrhmanBassiouny/ripple_down_rules
681
681
  Keywords: robotics,knowledge,reasoning,representation
682
682
  Classifier: Programming Language :: Python :: 3
683
- Requires-Python: >=3.8
683
+ Requires-Python: >=3.10
684
684
  Description-Content-Type: text/markdown
685
685
  License-File: LICENSE
686
686
  Dynamic: license-file
@@ -128,7 +128,7 @@ class TestAlchemyRDR(TestCase):
128
128
  case_queries = []
129
129
  for case, targets in zip(self.all_cases[:n], habitat_targets):
130
130
  for attr, target in targets.items():
131
- case_queries.append(CaseQuery(case, attr, (Species,) if attr == 'species' else (Habitat,),
131
+ case_queries.append(CaseQuery(case, attr, (Species,) if attr == 'species' else (HabitatTable,),
132
132
  True if attr == 'species' else False, _target=target))
133
133
  grdr.fit(case_queries, expert=expert, animate_tree=draw_tree)
134
134
  for rule in grdr.start_rules:
@@ -5,6 +5,7 @@ from unittest import TestCase
5
5
 
6
6
  from typing_extensions import List, Optional, Any
7
7
 
8
+ from ripple_down_rules.datastructures.case import CaseAttribute
8
9
  from ripple_down_rules.datastructures.dataclasses import CaseQuery, CallableExpression
9
10
  from ripple_down_rules.experts import Human
10
11
  from ripple_down_rules.rdr import SingleClassRDR
@@ -103,7 +104,7 @@ class RelationalRDRTestCase(TestCase):
103
104
 
104
105
  def test_parse_relational_conclusions(self):
105
106
  user_input = "case.parts.contained_objects"
106
- conclusion = CallableExpression(user_input, list)
107
+ conclusion = CallableExpression(user_input, (CaseAttribute, PhysicalObject,))
107
108
  print(conclusion)
108
109
  print(conclusion(self.robot))
109
110
  assert conclusion(self.robot) == self.target
@@ -7,6 +7,7 @@ from sqlalchemy import ForeignKey
7
7
  from sqlalchemy.orm import MappedAsDataclass, DeclarativeBase, declared_attr, Mapped, mapped_column, relationship
8
8
  from typing_extensions import List, Any, Set
9
9
 
10
+ from ripple_down_rules.datastructures.case import CaseAttribute
10
11
  from ripple_down_rules.datastructures.dataclasses import CaseQuery
11
12
  from ripple_down_rules.datastructures.callable_expression import CallableExpression
12
13
  from ripple_down_rules.experts import Human
@@ -170,7 +171,7 @@ class RelationalRDRTestCase(TestCase):
170
171
 
171
172
  def test_parse_relational_conclusions(self):
172
173
  user_input = "case.parts.contained_objects"
173
- conclusion = CallableExpression(user_input, list)
174
+ conclusion = CallableExpression(user_input, (CaseAttribute, PhysicalObject,))
174
175
  print(conclusion)
175
176
  print(conclusion(self.robot))
176
177
  assert conclusion(self.robot) == self.target