natural-agi-common 0.1.38__py3-none-any.whl → 0.1.39__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.
- common/traversal/visitors/direction_visitor.py +6 -6
- common/traversal/visitors/length_comparison_visitor.py +3 -3
- {natural_agi_common-0.1.38.dist-info → natural_agi_common-0.1.39.dist-info}/METADATA +1 -1
- {natural_agi_common-0.1.38.dist-info → natural_agi_common-0.1.39.dist-info}/RECORD +6 -6
- {natural_agi_common-0.1.38.dist-info → natural_agi_common-0.1.39.dist-info}/WHEEL +0 -0
- {natural_agi_common-0.1.38.dist-info → natural_agi_common-0.1.39.dist-info}/top_level.txt +0 -0
|
@@ -69,8 +69,8 @@ class DirectionVisitor(Visitor):
|
|
|
69
69
|
|
|
70
70
|
# Store the direction for this vector
|
|
71
71
|
self.directions[line.id] = {"horizontal": h_direction, "vertical": v_direction}
|
|
72
|
-
self.graph.nodes[line.id]["horizontal_direction"] = h_direction
|
|
73
|
-
self.graph.nodes[line.id]["vertical_direction"] = v_direction
|
|
72
|
+
self.graph.nodes[line.id]["horizontal_direction"] = h_direction.value
|
|
73
|
+
self.graph.nodes[line.id]["vertical_direction"] = v_direction.value
|
|
74
74
|
self.graph.nodes[line.id][
|
|
75
75
|
"direction_sequence_index"
|
|
76
76
|
] = self.current_sequence_index
|
|
@@ -78,8 +78,8 @@ class DirectionVisitor(Visitor):
|
|
|
78
78
|
sequence_info = {
|
|
79
79
|
"index": self.current_sequence_index,
|
|
80
80
|
"line_id": line.id,
|
|
81
|
-
"horizontal_direction": h_direction,
|
|
82
|
-
"vertical_direction": v_direction,
|
|
81
|
+
"horizontal_direction": h_direction.value,
|
|
82
|
+
"vertical_direction": v_direction.value,
|
|
83
83
|
"x1": line.x1,
|
|
84
84
|
"y1": line.y1,
|
|
85
85
|
"x2": line.x2,
|
|
@@ -91,8 +91,8 @@ class DirectionVisitor(Visitor):
|
|
|
91
91
|
|
|
92
92
|
return {
|
|
93
93
|
"line_id": line.id,
|
|
94
|
-
"horizontal_direction": h_direction,
|
|
95
|
-
"vertical_direction": v_direction,
|
|
94
|
+
"horizontal_direction": h_direction.value,
|
|
95
|
+
"vertical_direction": v_direction.value,
|
|
96
96
|
"sequence_index": self.current_sequence_index - 1,
|
|
97
97
|
}
|
|
98
98
|
|
|
@@ -26,7 +26,7 @@ class LengthComparisonVisitor(Visitor):
|
|
|
26
26
|
comparison = LengthComparisonResult.SHORTER
|
|
27
27
|
else:
|
|
28
28
|
comparison = LengthComparisonResult.EQUAL
|
|
29
|
-
self.length_comparisons[line.id] = comparison
|
|
29
|
+
self.length_comparisons[line.id] = comparison.value
|
|
30
30
|
self.previous_length = line.length
|
|
31
31
|
self.line_ids.append(line.id)
|
|
32
32
|
|
|
@@ -34,7 +34,7 @@ class LengthComparisonVisitor(Visitor):
|
|
|
34
34
|
return None
|
|
35
35
|
|
|
36
36
|
return {
|
|
37
|
-
"length_comparison": comparison,
|
|
37
|
+
"length_comparison": comparison.value,
|
|
38
38
|
"line1_id": self.line_ids[-2],
|
|
39
39
|
"line2_id": self.line_ids[-1],
|
|
40
40
|
}
|
|
@@ -70,7 +70,7 @@ class LengthComparisonVisitor(Visitor):
|
|
|
70
70
|
query,
|
|
71
71
|
line1_id=result["line1_id"],
|
|
72
72
|
line2_id=result["line2_id"],
|
|
73
|
-
comparison=result["length_comparison"]
|
|
73
|
+
comparison=result["length_comparison"],
|
|
74
74
|
image_id=image_id,
|
|
75
75
|
session_id=session_id,
|
|
76
76
|
)
|
|
@@ -16,12 +16,12 @@ common/traversal/graph_traversal.py,sha256=F_QBFYPyVckWkxjU-_Jos3WKSSUqaSOg1TbsU
|
|
|
16
16
|
common/traversal/start_point_selector.py,sha256=saW8G3X3bEiXmZ_aTSCtb8hbquzae4qcaicyvsQ_mVw,4608
|
|
17
17
|
common/traversal/visitors/__init__.py,sha256=TR7G8-IlF_ytfvqBSKVfOND3cQb1-wiMIMR100duYus,472
|
|
18
18
|
common/traversal/visitors/angle_visitor.py,sha256=ieqQyIHfsej8JMijM9jJrZtEUhF-MDnHHzXcW7nymP0,6920
|
|
19
|
-
common/traversal/visitors/direction_visitor.py,sha256=
|
|
20
|
-
common/traversal/visitors/length_comparison_visitor.py,sha256=
|
|
19
|
+
common/traversal/visitors/direction_visitor.py,sha256=4lJ7udqN0BLiejvy9pMTxGKoeyeBXqgTxdPnIuo6uqM,5980
|
|
20
|
+
common/traversal/visitors/length_comparison_visitor.py,sha256=6-Es4buUBDftjyzL7MCS4MlhoPELNmd8rZ30ODtr3gw,2825
|
|
21
21
|
common/traversal/visitors/quadrant_visitor.py,sha256=N8Vb91FqtRYoQ2G9cK91KAfDaC7u2KbPeQ3sDNqgvcw,3603
|
|
22
22
|
common/traversal/visitors/visitor.py,sha256=30J0GEqzgeQrOng-rjPncXlcLE16WE7sqLlJ7-8SuwU,775
|
|
23
23
|
common/traversal/visitors/visitor_result_persistence_service.py,sha256=lpr6KzZt22tjTpBnepbTMZ2gi9eLLNrojEv9ABTbvhE,760
|
|
24
|
-
natural_agi_common-0.1.
|
|
25
|
-
natural_agi_common-0.1.
|
|
26
|
-
natural_agi_common-0.1.
|
|
27
|
-
natural_agi_common-0.1.
|
|
24
|
+
natural_agi_common-0.1.39.dist-info/METADATA,sha256=WPUOSD1azX7IvWnre-C4UlSBK3rrCi91SHAA8_uf_40,213
|
|
25
|
+
natural_agi_common-0.1.39.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
26
|
+
natural_agi_common-0.1.39.dist-info/top_level.txt,sha256=LOtYx8KZTmnxM_zLK4rwrcI3PRc40Ihwp5rgaQ-ceaI,7
|
|
27
|
+
natural_agi_common-0.1.39.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|