Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moose
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sahil Moza
moose
Commits
fbf9dbd4
Commit
fbf9dbd4
authored
7 years ago
by
Dilawar Singh
Browse files
Options
Downloads
Patches
Plain Diff
Fixes to bad-merging.
parent
2ea8560e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
moose-gui/plugins/kkitOrdinateUtil.py
+0
-25
0 additions, 25 deletions
moose-gui/plugins/kkitOrdinateUtil.py
with
0 additions
and
25 deletions
moose-gui/plugins/kkitOrdinateUtil.py
+
0
−
25
View file @
fbf9dbd4
...
...
@@ -196,25 +196,9 @@ def autoCoordinates(meshEntry,srcdesConnection):
else
:
for
items
in
(
items
for
items
in
out
):
G
.
add_edge
(
element
(
items
[
0
]).
path
,
inn
.
path
)
<<<<<<<
HEAD
position
=
nx
.
spring_layout
(
G
)
#nx.draw(G,pos=nx.spring_layout(G))
#position = nx.spring_layout(G)
#import matplotlib.pyplot as plt
#plt.savefig('/home/harsha/Trash/Trash_SBML/test.png')
position
=
nx
.
graphviz_layout
(
G
,
prog
=
'
dot
'
)
if
int
(
nx
.
__version__
.
split
(
'
.
'
)[
-
1
]
)
>=
11
:
position
=
nx
.
spring_layout
(
G
)
#agraph = nx.to_agraph(G)
#agraph.draw("test.png", format = 'png', prog = 'dot')
xcord
=
[]
ycord
=
[]
=======
position
=
graphviz_layout
(
G
)
xcord
,
ycord
=
[],[]
>>>>>>>
320e525
a5a34fbd3f1cb572b6de38eca0c0876f0
for
item
in
position
.
items
():
xy
=
item
[
1
]
xroundoff
=
round
(
xy
[
0
],
0
)
...
...
@@ -222,14 +206,6 @@ def autoCoordinates(meshEntry,srcdesConnection):
xcord
.
append
(
xroundoff
)
ycord
.
append
(
yroundoff
)
<<<<<<<
HEAD
if
xcord
and
ycord
:
xmin
=
min
(
xcord
)
xmax
=
max
(
xcord
)
ymin
=
min
(
ycord
)
ymax
=
max
(
ycord
)
return
(
xmin
,
xmax
,
ymin
,
ymax
,
position
)
=======
xmin
=
min
(
xcord
)
xmax
=
max
(
xcord
)
ymin
=
min
(
ycord
)
...
...
@@ -241,7 +217,6 @@ def autoCoordinates(meshEntry,srcdesConnection):
Ay
=
(
xy
[
1
]
-
ymin
)
/
(
ymax
-
ymin
)
anno
.
x
=
round
(
Ax
,
1
)
anno
.
y
=
round
(
Ay
,
1
)
>>>>>>>
320e525
a5a34fbd3f1cb572b6de38eca0c0876f0
def
find_index
(
value
,
key
):
"""
Value.get(key) to avoid expection which would raise if empty value in dictionary for a given key
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment