Commit 2e8a46f4 authored by Leo Gordon's avatar Leo Gordon
Browse files

Make sure we do not create an analysis with non-hash parameters

parent 7ecca470
......@@ -424,10 +424,13 @@ sub run {
die "The meadow '$meadow_type' is currently not registered (analysis '$logic_name')\n";
}
$parameters_hash ||= {}; # in case nothing was given
die "'-parameters' has to be a hash" unless(ref($parameters_hash) eq 'HASH');
$analysis = Bio::EnsEMBL::Hive::Analysis->new(
-logic_name => $logic_name,
-module => $module,
-parameters => stringify($parameters_hash || {}), # have to stringify it here, because Analysis code is external wrt Hive code
-parameters => stringify($parameters_hash), # have to stringify it here, because Analysis code is external wrt Hive code
-resource_class_id => $rc_id,
-failed_job_tolerance => $failed_job_tolerance,
-max_retry_count => $max_retry_count,
......
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