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

File polarized_gaussian_all_corruptions.uvfits referenced in examples does not exist #319

Closed
KajWiik opened this issue Sep 29, 2023 · 4 comments

Comments

@KajWiik
Copy link

KajWiik commented Sep 29, 2023

When running the example in https://ptiede.github.io/Comrade.jl/dev/examples/data/#Loading-Data-into-Comrade, specifically

obseht = Pyehtim.load_uvfits_and_array(
                joinpath(dirname(pathof(Comrade)), "..", "examples", "PolarizedExamples/polarized_gaussian_all_corruptions.uvfits"),
                joinpath(dirname(pathof(Comrade)), "..", "examples", "PolarizedExamples/array.txt"),
                polrep="circ"
                        )

gives an error message

Loading uvfits:  /home/kjwiik/.julia/packages/Comrade/G7U3R/src/../examples/PolarizedExamples/polarized_gaussian_all_corruptions.uvfits
ERROR: Python: FileNotFoundError: [Errno 2] No such file or directory: '/home/kjwiik/.julia/packages/Comrade/G7U3R/src/../examples/PolarizedExamples/polarized_gaussian_all_corruptions.uvfits'
@rohandahale
Copy link

You may want to check if you have polarized_gaussian_all_corruptions.uvfits and array.txt in the directory specified. Easier fix is just download that file from main branch/examples and just do obseht = Pyehtim.load_uvfits_and_array("polarized_gaussian_all_corruptions.uvfits", "array.txt", polrep="circ" )

@KajWiik
Copy link
Author

KajWiik commented Sep 29, 2023

OK, I certainly do not have that file but my point is that the example does not work without hand-tuning... I made a fresh install of Comrade and dependencies and followed the example carefully.

@rohandahale
Copy link

rohandahale commented Sep 29, 2023

I understand your point now. The tutorial (dev) is based on v0.9 (main branch) and you are most likely using v0.8.1. To follow that tutorial, I would use latest Comrade#main (add Comrade#main).

@KajWiik
Copy link
Author

KajWiik commented Sep 29, 2023

Aha, so it is, tutorial is dev and not in sync with the default branch, got it, thanks! This may cause confusion with newcomers to Comrade in the current project.

@KajWiik KajWiik closed this as completed Sep 29, 2023
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

2 participants