-
Notifications
You must be signed in to change notification settings - Fork 78
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
added make_test_grib_idx function and tests #485
Conversation
For local files, I recommend you use full absolute paths to avoid confusion. Also, if you want to test how your function works (which looks like a fixture, by the way), you can first copy the file to local rather than have two filesystems to get confused between. |
I thought |
I don't understand - this PR is already wanting to add that function to the kerchunk repo (this repo). |
If it isn't clear, my original comment above was in response to
which request of yours since disappeared. |
No, I meant you said this function looks like a fixture, so I asked the question. |
Yes, the function could be made into a function and included in this repo. It is only used for tests, right? |
Yes, it will be used for tests. |
Will it be used ONLY for tests? If yes, you can try making it a |
The original implementation copied subset of the grib file to the cloud. I modified it so the subset file could be locally or to the cloud (if you have access to it). |
Right, but apparently this wasn't working as you expected. Thus, it might be simpler to first copy a given file to local, and then make its .idx local->local. |
I meant test wasn't working. The function work fine. |
If the test fails, maybe you can't be certain that the function is working fine. |
No I meant the test which I wrote for the |
Also this function isn't used anywhere in the actual flow or in the tests. There was bunch of grib-idx pairs the in the |
?? |
It was in the original repo, so I thought of adding it. I'll close this PR. |
No description provided.