3 use ext
::File
::HomeDir
;
5 $config = ext
::Config
::Tiny
-> read( $config_file );
8 debug
-> die( message
=> "In PsN configuration file[" . $config_file . "]:" . $ext::Config
::Tiny
::errstr
);
11 if( -e home
() . "/psn.conf" ){
12 my $personal_config = ext
::Config
::Tiny
-> read( home
() . '/psn.conf' );
13 %{$config} = (%{$config}, %{$personal_config});
16 unless( exists $config -> {'low_INF'} ){
17 $config -> {'low_INF'} = -1000000;
20 unless( exists $config -> {'high_INF'} ){
21 $config -> {'high_INF'} = 1000000;
27 if ( $config -> {'_'} -> {'output_style'} eq 'SPLUS' ) {
28 $out_miss_data = 'NA';
30 $factorize_strings = 0;
31 } elsif ( $config -> {'_'} -> {'output_style'} eq 'MATLAB' ) {
32 $out_miss_data = 'NaN';
34 $factorize_strings = 1;
35 } else { # Default style EXCEL
36 $out_miss_data = undef;
38 $factorize_strings = 0;