Changeset 36818


Ignore:
Timestamp:
2022-10-16T23:10:09+13:00 (18 months ago)
Author:
davidb
Message:

Tweak of RE to work on local file, rather than on that is in 'import/'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-installations/mars/trunk/sites/mars/collect/amc-essentia/AUDIO-FRAME-TO-ESSENTIA-CSV-FEATURE-FILE.pl

    r35224 r36818  
    149149
    150150    my ($full_audio_root) = ($audio_file =~ m/^(.*)\..+?$/);
    151     my ($audio_root)      = ($full_audio_root =~ m/^.*\/(.*?)$/);
    152 
     151    my ($audio_root)      = ($full_audio_root =~ m/^(?:.*\/)?(.*?)$/);
     152   
    153153    my $lines = extract_audio_features_as_csv($audio_root,$audio_file,$profile_file,$ignore_fields,undef);
    154154
     
    221221    my $audio_file        = $ARGV[2];
    222222    my ($full_audio_root) = ($audio_file =~ m/^(.*)\..+?$/);
    223     my ($audio_root)      = ($full_audio_root =~ m/^.*\/(.*?)$/);
    224    
     223    my ($audio_root)      = ($full_audio_root =~ m/^(?:.*\/)?(.*?)$/);
     224
     225
    225226    if ( ! -d "tmp" ) {
    226227    print "Creating directory: tmp\n";
Note: See TracChangeset for help on using the changeset viewer.