From 57015877eaeacc6bf3c0c65697e7a90d3f14d323 Mon Sep 17 00:00:00 2001 From: Rikard Nordgren Date: Tue, 2 Jan 2024 10:17:31 +0100 Subject: [PATCH] Use final table in phi-file in frem --- lib/utils/phitable.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/utils/phitable.pm b/lib/utils/phitable.pm index 36b07260..21dd7309 100644 --- a/lib/utils/phitable.pm +++ b/lib/utils/phitable.pm @@ -42,10 +42,7 @@ sub validate_phi # load table my $tables = nmtablefile->new(filename => $path); my $num_tables = scalar @{$tables->tables}; - if ($num_tables != 1) { - croak "phi file must contain exactly 1 table ($filename has $num_tables)"; - } - my $table = $tables->get_table(index => 0); + my $table = $tables->get_table(index => $num_tables - 1); $self->table( $table ); # load as matrix and header