-
Notifications
You must be signed in to change notification settings - Fork 18
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
Dev space resample #74
base: master
Are you sure you want to change the base?
Conversation
shot.wavelets = shot.wavelets._resample(factor=old_step/new_step, new_num=new_num) # resample wavelet | ||
shot.observed = shot.observed._resample(factor=old_step/new_step, new_num=new_num) # resample observed | ||
|
||
shot.wavelets = shot.wavelets._resample( # resample wavelet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if resample is an in-place operation then you don't need to assign the result, only call the method
try: | ||
del self.__dict__['grid'] | ||
except: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you've creared a _clear_cache
method below, why are you not using it?
Resampling ultility functions implemented, I still have to test that everything is working as expected (i.e. no rounding errors)