Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
01a2c713
Commit
01a2c713
authored
Nov 07, 2019
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed matplotlib
parent
cb908f98
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
11 deletions
+20
-11
workspace.xml
drip-planner/.idea/workspace.xml
+15
-5
planner.py
drip-planner/planner/planner.py
+1
-1
requirements.txt
drip-planner/requirements.txt
+1
-2
specification_analyzer.py
drip-planner/service/specification_analyzer.py
+3
-3
No files found.
drip-planner/.idea/workspace.xml
View file @
01a2c713
...
@@ -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
drip-planner/planner/planner.py
View file @
01a2c713
...
@@ -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
...
...
drip-planner/requirements.txt
View file @
01a2c713
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
drip-planner/service/specification_analyzer.py
View file @
01a2c713
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment