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

removed matplotlib

parent cb908f98
...@@ -2,9 +2,11 @@ ...@@ -2,9 +2,11 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="e478ccae-5352-4e8e-9efb-3f5cda44e877" name="Default Changelist" comment=""> <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$/../.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$/.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" /> <change beforePath="$PROJECT_DIR$/../jenkins_pipeline" beforeDir="false" afterPath="$PROJECT_DIR$/../jenkins_pipeline" afterDir="false" />
</list> </list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
...@@ -50,7 +52,7 @@ ...@@ -50,7 +52,7 @@
</list> </list>
</option> </option>
</component> </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"> <configuration name="__main__" type="PythonConfigurationType" factoryName="Python" temporary="true">
<module name="drip-planner" /> <module name="drip-planner" />
<option name="INTERPRETER_OPTIONS" value="" /> <option name="INTERPRETER_OPTIONS" value="" />
...@@ -92,8 +94,8 @@ ...@@ -92,8 +94,8 @@
</list> </list>
<recent_temporary> <recent_temporary>
<list> <list>
<item itemvalue="Python tests.Unittests in test_planner.py" />
<item itemvalue="Python.__main__" /> <item itemvalue="Python.__main__" />
<item itemvalue="Python tests.Unittests in test_planner.py" />
</list> </list>
</recent_temporary> </recent_temporary>
</component> </component>
...@@ -115,7 +117,14 @@ ...@@ -115,7 +117,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1573136717037</updated> <updated>1573136717037</updated>
</task> </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 /> <servers />
</component> </component>
<component name="Vcs.Log.Tabs.Properties"> <component name="Vcs.Log.Tabs.Properties">
...@@ -133,6 +142,7 @@ ...@@ -133,6 +142,7 @@
</component> </component>
<component name="VcsManagerConfiguration"> <component name="VcsManagerConfiguration">
<MESSAGE value="refactor planner" /> <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> </component>
</project> </project>
\ No newline at end of file
...@@ -4,7 +4,7 @@ from toscaparser.tosca_template import ToscaTemplate ...@@ -4,7 +4,7 @@ from toscaparser.tosca_template import ToscaTemplate
from toscaparser.topology_template import TopologyTemplate from toscaparser.topology_template import TopologyTemplate
import operator import operator
import matplotlib.pyplot as plt # import matplotlib.pyplot as plt
from service.simple_spec_alayzer import SimpleAnalyzer from service.simple_spec_alayzer import SimpleAnalyzer
from util import tosca_helper from util import tosca_helper
......
matplotlib==3.1.1
pika==1.1.0 pika==1.1.0
tosca-parser==1.6.0 tosca-parser==1.6.0
names==0.3.0 names==0.3.0
networkx==2.4 networkx==2.4
matplotlib==3.1.1 # matplotlib==3.1.1
\ No newline at end of file \ No newline at end of file
...@@ -3,7 +3,7 @@ from abc import abstractmethod, ABCMeta ...@@ -3,7 +3,7 @@ from abc import abstractmethod, ABCMeta
from toscaparser.tosca_template import ToscaTemplate from toscaparser.tosca_template import ToscaTemplate
import networkx as nx import networkx as nx
import matplotlib.pyplot as plt # import matplotlib.pyplot as plt
class SpecificationAnalyzer(metaclass=ABCMeta): class SpecificationAnalyzer(metaclass=ABCMeta):
...@@ -44,8 +44,8 @@ class SpecificationAnalyzer(metaclass=ABCMeta): ...@@ -44,8 +44,8 @@ class SpecificationAnalyzer(metaclass=ABCMeta):
relationship_type = req[req_name]['relationship'] relationship_type = req[req_name]['relationship']
graph.add_edge(node.name, req_node_name, relationship=relationship_type) graph.add_edge(node.name, req_node_name, relationship=relationship_type)
nx.draw(graph, with_labels=True) # nx.draw(graph, with_labels=True)
plt.savefig("/tmp/graph.png") # plt.savefig("/tmp/graph.png")
# plt.show() # plt.show()
return graph 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