mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-09-12 04:01:35 +00:00
64 lines
5.4 KiB
Plaintext
64 lines
5.4 KiB
Plaintext
python : test_pipeline_execution (tests.cookbook.test_disease_network_ana
|
|
lysis.TestDiseaseNetworkAnalysis.test_pipeline_execution)
|
|
At line:1 char:32
|
|
+ ... NG="utf-8"; python -m unittest -v
|
|
tests/cookbook/test_disease_network ...
|
|
+
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
+ CategoryInfo : NotSpecified: (test_pipeline_e...line_exec
|
|
ution):String) [], RemoteException
|
|
+ FullyQualifiedErrorId : NativeCommandError
|
|
|
|
|
|
|
|
Replicates the logic of
|
|
cookbook/use_cases/healthcare/02_Disease_Network_Analysis.ipynb ... ERROR
|
|
|
|
======================================================================
|
|
ERROR: test_pipeline_execution (tests.cookbook.test_disease_network_analy
|
|
sis.TestDiseaseNetworkAnalysis.test_pipeline_execution)
|
|
Replicates the logic of
|
|
cookbook/use_cases/healthcare/02_Disease_Network_Analysis.ipynb
|
|
----------------------------------------------------------------------
|
|
Traceback (most recent call last):
|
|
File "C:\Users\Mohd
|
|
Kaif\semantica\tests\cookbook\test_disease_network_analysis.py", line
|
|
167, in test_pipeline_execution
|
|
disease_kg = builder.build(sources)
|
|
^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\Mohd Kaif\semantica\semantica\kg\graph_builder.py",
|
|
line 239, in build
|
|
detected_conflicts =
|
|
self.conflict_detector.detect_conflicts(graph["entities"])
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\Mohd
|
|
Kaif\semantica\semantica\conflicts\conflict_detector.py", line 839, in
|
|
detect_conflicts
|
|
conflicts = self.detect_entity_conflicts(filtered_entities,
|
|
entity_type)
|
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\Mohd
|
|
Kaif\semantica\semantica\conflicts\conflict_detector.py", line 345, in
|
|
detect_entity_conflicts
|
|
conflicts = self.detect_value_conflicts(entities, field, entity_type)
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\Mohd
|
|
Kaif\semantica\semantica\conflicts\conflict_detector.py", line 223, in
|
|
detect_value_conflicts
|
|
recommended_action=self._recommend_action(
|
|
^^^^^^^^^^^^^^^^^^^^^^^
|
|
File "C:\Users\Mohd
|
|
Kaif\semantica\semantica\conflicts\conflict_detector.py", line 388, in
|
|
_recommend_action
|
|
if len(set(values)) == 2:
|
|
^^^^^^^^^^^
|
|
TypeError: unhashable type: 'dict'
|
|
|
|
----------------------------------------------------------------------
|
|
Ran 1 test in 0.086s
|
|
|
|
FAILED (errors=1)
|
|
🧠 Semantica is ingesting 🔄 📥 [ingest] FileIngestor 📄 disease_data.json (0.0s)
|