Commit 01a2c713 authored by Spiros Koulouzis's avatar Spiros Koulouzis

removed matplotlib

parent cb908f98
......@@ -2,9 +2,11 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="e478ccae-5352-4e8e-9efb-3f5cda44e877" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/requirements.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../.jenkins_pipeline.kate-swp" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/planner/planner.py" beforeDir="false" afterPath="$PROJECT_DIR$/planner/planner.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/requirements.txt" beforeDir="false" afterPath="$PROJECT_DIR$/requirements.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/service/specification_analyzer.py" beforeDir="false" afterPath="$PROJECT_DIR$/service/specification_analyzer.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../jenkins_pipeline" beforeDir="false" afterPath="$PROJECT_DIR$/../jenkins_pipeline" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
......@@ -50,7 +52,7 @@
</list>
</option>
</component>
<component name="RunManager" selected="Python tests.Unittests in test_planner.py">
<component name="RunManager" selected="Python.__main__">
<configuration name="__main__" type="PythonConfigurationType" factoryName="Python" temporary="true">
<module name="drip-planner" />
<option name="INTERPRETER_OPTIONS" value="" />
......@@ -92,8 +94,8 @@
</list>
<recent_temporary>
<list>
<item itemvalue="Python tests.Unittests in test_planner.py" />
<item itemvalue="Python.__main__" />
<item itemvalue="Python tests.Unittests in test_planner.py" />
</list>
</recent_temporary>
</component>
......@@ -115,7 +117,14 @@
<option name="project" value="LOCAL" />
<updated>1573136717037</updated>
</task>
<option name="localTasksCounter" value="2" />
<task id="LOCAL-00002" summary="added requrements file">
<created>1573139478946</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1573139478947</updated>
</task>
<option name="localTasksCounter" value="3" />
<servers />
</component>
<component name="Vcs.Log.Tabs.Properties">
......@@ -133,6 +142,7 @@
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="refactor planner" />
<option name="LAST_COMMIT_MESSAGE" value="refactor planner" />
<MESSAGE value="added requrements file" />
<option name="LAST_COMMIT_MESSAGE" value="added requrements file" />
</component>
</project>
\ No newline at end of file
......@@ -4,7 +4,7 @@ from toscaparser.tosca_template import ToscaTemplate
from toscaparser.topology_template import TopologyTemplate
import operator
import matplotlib.pyplot as plt
# import matplotlib.pyplot as plt
from service.simple_spec_alayzer import SimpleAnalyzer
from util import tosca_helper
......
matplotlib==3.1.1
pika==1.1.0
tosca-parser==1.6.0
names==0.3.0
networkx==2.4
matplotlib==3.1.1
\ No newline at end of file
# matplotlib==3.1.1
\ No newline at end of file
......@@ -3,7 +3,7 @@ from abc import abstractmethod, ABCMeta
from toscaparser.tosca_template import ToscaTemplate
import networkx as nx
import matplotlib.pyplot as plt
# import matplotlib.pyplot as plt
class SpecificationAnalyzer(metaclass=ABCMeta):
......@@ -44,8 +44,8 @@ class SpecificationAnalyzer(metaclass=ABCMeta):
relationship_type = req[req_name]['relationship']
graph.add_edge(node.name, req_node_name, relationship=relationship_type)
nx.draw(graph, with_labels=True)
plt.savefig("/tmp/graph.png")
# nx.draw(graph, with_labels=True)
# plt.savefig("/tmp/graph.png")
# plt.show()
return graph
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment