Development of bioacoustic tools for analyzing Orcasound data -- either post-processing of archived raw FLAC files or real-time analysis of the lossy stream and/or FLAC files.
GNU Affero General Public License v3.0
53
stars
23
forks
source link
changes done ProcessLocalFilesForCalls regarding figure plotting and in ScanLocalAudioFilesForCalls regarding to path separator hardcoding #26
Line 20 : safediv = lambda x,y : x if y == 0 else x/y
Line 103: outFileName = os.path.splitext(os.path.basename(thisAudioFile))[0] # save base WAV filename for outputs
Line 210-212
plt.plot(xplot,safediv(yNpeaks,np.max(yNpeaks)), color = 'blue')
plt.scatter(xplot,safediv(ycallLen,np.max(ycallLen)),color='red')
plt.scatter(xplot,safediv(ycallPeak,np.max(ycallPeak)),color='black')
Line 218
outFileName = os.path.join(dirOutput,outFileName+".png")
ScanLocalAudioFilesForCalls-
Line 7
import searchFileForCalls as sff(fixed import)
Line 18-23
removed unnecessary variables
Line 46-56
reading WAV and FLAC files from single user-provided input only
Line 63-67
Added code for path agnostic code( code can work on windows/Linux or any other machine
the issue was due to hardcoding of path separators)
Line 74
print("processing file",os.path.basename(snd)) getting the base file name
ProcessLocalFilesForCalls-
Line 20 : safediv = lambda x,y : x if y == 0 else x/y Line 103: outFileName = os.path.splitext(os.path.basename(thisAudioFile))[0] # save base WAV filename for outputs
Line 210-212 plt.plot(xplot,safediv(yNpeaks,np.max(yNpeaks)), color = 'blue') plt.scatter(xplot,safediv(ycallLen,np.max(ycallLen)),color='red') plt.scatter(xplot,safediv(ycallPeak,np.max(ycallPeak)),color='black') Line 218 outFileName = os.path.join(dirOutput,outFileName+".png")
ScanLocalAudioFilesForCalls- Line 7 import searchFileForCalls as sff(fixed import) Line 18-23 removed unnecessary variables Line 46-56 reading WAV and FLAC files from single user-provided input only Line 63-67 Added code for path agnostic code( code can work on windows/Linux or any other machine the issue was due to hardcoding of path separators) Line 74 print("processing file",os.path.basename(snd)) getting the base file name