Skip to content
Snippets Groups Projects
Commit c6e91edf authored by Paulo Lins's avatar Paulo Lins Committed by Natalie Willhoft
Browse files

modify reg. feature payload

parent 1afb9356
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,15 @@ sub to_hash {
my ($self, $features, $feature_type) = @_;
my @hashed;
foreach my $feature (@{$features}) {
my $hash = $feature->summary_as_hash();
my $hash;
if (lc($feature_type) eq 'regulatory') {
$hash = $feature->summary_as_hash_2();
} else {
$hash = $feature->summary_as_hash();
}
foreach my $key (@KNOWN_NUMERICS) {
my $v = $hash->{$key};
$hash->{$key} = ($v*1) if defined $v;
......
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