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

no example data in repo to run notebook #6

Closed
thejasvibr opened this issue Mar 21, 2024 · 9 comments
Closed

no example data in repo to run notebook #6

thejasvibr opened this issue Mar 21, 2024 · 9 comments

Comments

@thejasvibr
Copy link

thejasvibr commented Mar 21, 2024

As I try to run Cell 2 of the example notebook, this error pops up.
Also, having looked into the repo as it stands - doesn't seem like the data files are in version control.

image

@1oly
Copy link
Owner

1oly commented Mar 24, 2024

Thanks for the fresh eyes on my package @thejasvibr 👍 I’m on vacation and will be back in a week and look into your issue.

@1oly
Copy link
Owner

1oly commented Apr 2, 2024

Hi @thejasvibr ! Thanks for waiting. The data for the example is first downloaded from an external repo when you run the tests. This is not documented, I'm sorry about that. I will update the README and the example notebook to reflect this. If you want to test it out you should invoke the julia package manager by ] (changing the prompt to pkg>) and write:

pkg> test AeroAcoustics

Then the data is downloaded and should subsequently be available for the example script...
This should also somewhat address your other issue about tests. I will working on a better documentation of this in the coming week.

@1oly
Copy link
Owner

1oly commented Apr 4, 2024

Hi again @thejasvibr, could I ask you to report back about the above suggestion, when time permits? If it works, I will add the instructions to the README and script.

@thejasvibr
Copy link
Author

thejasvibr commented Apr 8, 2024

Hi @1oly - no change in error message. This is after running the tests as suggested in the post above.
Alternately (and instead of asking users to run the potentially time-consuming tests), it may be a good idea to include a separate link to the data in the README.

@1oly
Copy link
Owner

1oly commented Apr 8, 2024

Hi @thejasvibr Thank you. I completely agree, and will find an alternative solution about the data. But for now, I'm hoping to get the current script running, since there might be other issues there to be found.

Did the tests complete?
If yes, then you were in fact able to download the file, but it's simply not found by the script.

@thejasvibr
Copy link
Author

thejasvibr commented Apr 8, 2024 via email

@nantonel
Copy link

nantonel commented Apr 8, 2024

In the doc I'd change csm_file = joinpath(dirname(@__DIR__),"test","data","test1_csm.h5") to something like:

csm_file = joinpath(replace(dirname(pathof(AeroAcoustics)),"src"=>"test"),"data","test1_csm.h5")

then I could run the code snippets except for sourceintegration(x,E,int_region).

@1oly
Copy link
Owner

1oly commented Apr 8, 2024

Thanks @nantonel ! I will update accordingly.
Please submit an issue for the sourceintegration error you got. Wonderful with the feedback :)

@1oly
Copy link
Owner

1oly commented Apr 10, 2024

Hi both,
Thanks for the comments and suggested change in the code. I have pushed #10 with some updates to the docs and example script. Hope you can run it now.

Closing, but please reopen if the issue persist!

@1oly 1oly closed this as completed Apr 10, 2024
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