Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl-hive
Commits
f645ab19
Commit
f645ab19
authored
Aug 09, 2019
by
Matthieu Muffato
Browse files
Don't need to use a hash since eHive will take care of the redundancy
parent
a9fbaafa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
modules/Bio/EnsEMBL/Hive/Examples/LongMult/RunnableDB/DigitFactory.pm
...EnsEMBL/Hive/Examples/LongMult/RunnableDB/DigitFactory.pm
+2
-5
No files found.
modules/Bio/EnsEMBL/Hive/Examples/LongMult/RunnableDB/DigitFactory.pm
View file @
f645ab19
...
...
@@ -78,15 +78,12 @@ sub fetch_input {
my
$b_multiplier
=
$self
->
param_required
('
b_multiplier
');
my
%digit_hash
=
()
;
my
@sub_tasks
;
foreach
my
$digit
(
split
(
//
,
$b_multiplier
))
{
# next if (($digit eq '0') or ($digit eq '1'));
$digit_hash
{
$digit
}
++
;
push
@sub_tasks
,
{
'
digit
'
=>
$digit
};
}
# parameter hashes of partial multiplications to be computed:
my
@sub_tasks
=
map
{
{
'
digit
'
=>
$_
}
}
sort
{
$a
<=>
$b
}
keys
%digit_hash
;
# store them for future use:
$self
->
param
('
sub_tasks
',
\
@sub_tasks
);
}
...
...
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