Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plotPath in spectrogram.ipynb is not an actual file location #18

Open
Debjoy10 opened this issue Mar 10, 2020 · 6 comments
Open

plotPath in spectrogram.ipynb is not an actual file location #18

Debjoy10 opened this issue Mar 10, 2020 · 6 comments

Comments

@Debjoy10
Copy link
Contributor

In file Spectogram/Scripts/spectrogram.ipynb, cell 2, line-

plotPath = join(basePath, "orcadata", "spectrogram", "Plots")

does not correspond to an actual file path.

@kunakl07
Copy link
Contributor

Hi @Debjoy10
Please replace these with your own file path to the path you have chosen for your "orca data" directory.

@Debjoy10
Copy link
Contributor Author

Hi @kunakl07
I changed the base path to the location of orcadata on my local device. But "Spectrogram" has an uppercase S. Also, the plots in "Plots-Ford" didn't actually match with the ones obtained from running spectrogram.ipynb, so i am not sure whether it is a typo.

@kunakl07
Copy link
Contributor

Hi @Debjoy10
I got your query and yes it might be a typo but after changing the path to the local one you are anyway going to alter it. As a result, I don't think changing the path over there would make any difference.
I have replicated the following in jupyter notebook on colab. I would like you to take a look at the path changes that have been made.

https://colab.research.google.com/drive/1np-Ipchx3A3Mvl5egukEg8_GaDly4SYV

# Please replace this with YOUR path to orcadata
basePath = r"/content/"
plotPath = join(basePath, "orcadata", "Spectrogram", "Plots-Ford")
folderpath = join(basePath, "orcadata", "Sounds", "catalog", "flac")
onlyfiles = [f for f in listdir(folderpath) if isfile(join(join(folderpath, f)))

Here are the changes that I feel would help you
Also, please feel free to ask more doubts.

@nikhilrana015
Copy link
Contributor

Hello @Debjoy10, the plot path is only used to store the spectrogram images in png format as you see in the end line of the program. So if you run the program and change the plots to Plots-Ford it saves your spectrograms to that folder and might alter the folder(as @kunakl07 suggests). So instead of doing this why don't you create a separate folder with the same name as 'Plots' in that particular directory and saves all your spectrograms over there.

@Debjoy10
Copy link
Contributor Author

Thanks @nikhilrana015 , @kunakl07 i will make the necessary changes.

@Debjoy10
Copy link
Contributor Author

Resolved by #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants