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

automatically determine remote_load #53

Merged
merged 24 commits into from
Oct 23, 2024
Merged

automatically determine remote_load #53

merged 24 commits into from
Oct 23, 2024

Conversation

jkingslake
Copy link
Member

Taking over from #29.

After this PR you will not need to specify remote_load=True when trying to laod from a google bucket.

A new function, from_dats.is_this_a_remote_load, determines remote_load based on whether gs:// is in the directory you are trying to load from.

Future work could get this working for other cloud storage locations.

Merge pull request #45 from ldeo-glaciology/ongoing-work-jk-07-24
The NB contains a working function that implements all the things I was hoping to get working:
- fft of mautli-dimensional datarrays
- Georges's demean, detrend, drop bad chirps.
- reference array
- agrees with the code implemented in xapres currently (- the error in the padding described in an issue #48)
also adds an option to load all to use the legacy fft method and to uses a corrected padding procedure for comparison with the new methods.

custom_fft_implementation.ipynb tests this out, but needs more work to make it understanable.
add a test of the new fft methods and compares the to the previous way of doing it and doing the same thing in different ways with the new methods, to make sure they all give the same answer.

Also edited test_file_selection_methods so that it loads from local, not a google bucket. Just to speed things up a bit.

All test run in 30s on my local machine.
this will need more testing. Currently I have not been using these features and by default they are turned off.
@jkingslake jkingslake merged commit ec874e7 into master Oct 23, 2024
3 checks passed
@jkingslake jkingslake mentioned this pull request Oct 23, 2024
@jkingslake jkingslake deleted the auto__file_load branch October 23, 2024 15:06
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

Successfully merging this pull request may close these issues.

1 participant