Skip to content

Commit

Permalink
Turn off label and group remaps for spreadsheet and shapefile imports…
Browse files Browse the repository at this point in the history
…, since they don't actually do anything.

The GUI has long had the capacity to rename labels and attach group and label properties as a post-hoc process, so this should be turned off for all imports to simplify the code base.

Updates issue #540

Signed-off-by: Shawn Laffan <shawnlaffan@gmail.com>
  • Loading branch information
shawnlaffan committed May 28, 2015
1 parent adba4f6 commit c78b438
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Biodiverse/GUI/BasedataImport.pm
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,13 @@ sub run {
# add new params to args
push @{$args{parameters}}, @{$raster_args{parameters}};
}
else {
# for spreadsheet and shapefile we filter out the remap stuff
# until we remove it completely from the import stage
my $p = $args{parameters};
my @p2 = grep {print $_->get_name; not $_->get_name =~ /use_(label|group)_properties/} @$p;
$args{parameters} = \@p2;
}
my $max_col_spinner = {
name => 'max_opt_cols',
type => 'integer',
Expand Down

0 comments on commit c78b438

Please sign in to comment.