PERL PACKAGE NAME: files_LSU AUTHOR: Juan Lorenzo DATE: May 6 2018 DESCRIPTION BASED ON: Version 0.0.2 May 6 2018 changed _private_* to _* V 0.0.3 July 24 2018 include data_in, exclude data_out
needs $L_SU->{_prog_name_sref}
suffix_type_set_suffix_suffix_type TODO: suffix_type out may not be always type=$su in the case that the program in the list starts with $su At that point it will be necessary to investigate the program_spec.pm module suffix_type sub _set_suffix_type_out { my ($type) = @_; _set_datas files_les_LSU->{_suffix_type_out} = $suffix_types_LSU->{_is_suffix_type} = $true;
return(); }
#print("files_LSU,_set_outbound2pl,program_name $files_LSU->{_program_name}\n"); #print("files_LSU,_set_outbound2pl,program_name_config $files_LSU->{_program_name_config}\n");
needs prog_name_sref and is_Project_config or or _is_config
Why use name module? To modify input names-- adapt them to infer which spec and parameter files to read
Program names in GUI and configuration file names in the local (!!) directory may be different.
needs prog_name_sref is_Project_config or _is_config TODO: make exclusive for cases that are NOT Project_config
detects and attempts to rectify program order error $oop_text->set_bin_out();
relay messages via the main message widget in GUI
saved files are local perl flows
print("files_LSU,set_outbound,program_name $files_LSU->{_program_name}\n"); print("files_LSU,set_outbound,program_name_config $files_LSU->{_program_name_config}\n");
# for (my $j=0; $j < $num_progs4flow; $j++ ) { # # my $num_params4prog = scalar @{@{$files_LSU->{_prog_param_labels_aref2}}[$j]}; # print("files_LSU,set_prog_param_labels_aref2,num_params4prog in index=$j: $num_params4prog \n"); # print("\nfiles_LSU,_prog_param_labels_aref2, labels:\n"); # my @labels = @{@{$files_LSU->{_prog_param_labels_aref2}}[$j]}; # print("@labels\n"); # }
Output parameters for superflows A Tool is a superflow i/p $hash_ref to obtain entry labels and values and parameters from widgets to build @CFG
DB print("prog name $program_name\n"); print(" save_button,save,configure,write_LSU,tool_specs $files_LSU->{_program_name_config}\n"); print("save,superflow,write_LSU, key/value pairs:$CFG[$i], $CFG[$j]\n"); #use Config::Simple; #my $cfg = new Config::Simple(syntax=>'ini'); #$cfg->write($files_LSU->{_program_name_config}); # print "@CFGpa\n"; #$cfg->ram($CFG[$i] ,$CFG[$j]); #print "@CFG\n"; # print("write_LSU,tool_specs \nprog_name:${$files_LSU->{_program_name}}\n"); # print("\n prog_name_config: $files_LSU->{_program_name_config}\n"); # print(" labels: @{$hash_ref->{_ref_labels}}\n"); # print(" values: @{$hash_ref->{_ref_values}}\n");
# no. of variables comes from specs file directly $length = scalar @{$hash_ref->{_ref_labels}};-- old version
all files if outbound includes the existing file path as well
write out user-built *.pl flow files for (my $i=0, my $j=0; $i<$length; $i++, $j=$j+2){ printf $OUT "%-35s%1s%-20s\n",$CFG[$j],"= ",$CFG[($j+1)]; }
To install App::SeismicUnixGui, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::SeismicUnixGui
CPAN shell
perl -MCPAN -e shell install App::SeismicUnixGui
For more information on module installation, please visit the detailed CPAN module installation guide.