Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
7db41667
Commit
7db41667
authored
Oct 28, 2013
by
Leo Gordon
Browse files
do not even call _add_hive_details() if not necessary
parent
df5ee001
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
modules/Bio/EnsEMBL/Hive/Utils/Graph.pm
modules/Bio/EnsEMBL/Hive/Utils/Graph.pm
+8
-9
No files found.
modules/Bio/EnsEMBL/Hive/Utils/Graph.pm
View file @
7db41667
...
...
@@ -199,7 +199,9 @@ sub build {
}
}
$self
->
_add_hive_details
();
if
(
$self
->
config_get
('
DisplayDetails
')
)
{
$self
->
_add_hive_details
();
}
foreach
my
$analysis
(
$all_analyses_coll
->
list
)
{
$self
->
_add_analysis_node
(
$analysis
);
}
...
...
@@ -309,19 +311,16 @@ sub _propagate_allocation {
sub
_add_hive_details
{
my
(
$self
)
=
@_
;
my
$node_fontname
=
$self
->
config_get
('
Node
',
'
Details
',
'
Font
');
my
(
$self
)
=
@_
;
if
(
$self
->
config_get
('
DisplayDetails
')
)
{
my
$node_fontname
=
$self
->
config_get
('
Node
',
'
Details
',
'
Font
');
my
$dbc
=
$self
->
dba
()
->
dbc
();
my
$label
=
sprintf
('
%s@%s
',
$dbc
->
dbname
,
$dbc
->
host
||
'
-
');
$self
->
graph
()
->
add_node
(
'
Details
',
label
=>
$label
,
fontname
=>
$node_fontname
,
shape
=>
'
plaintext
',
label
=>
$label
,
fontname
=>
$node_fontname
,
shape
=>
'
plaintext
',
);
}
}
...
...
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