-
Notifications
You must be signed in to change notification settings - Fork 39
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
Tkurth/torchification #66
base: main
Are you sure you want to change the base?
Conversation
] | ||
) | ||
def test_distributed_resampling( | ||
self, nlat_in, nlon_in, nlat_out, nlon_out, batch_size, num_chan, grid_in, grid_out, mode, tol | ||
self, nlat_in, nlon_in, nlat_out, nlon_out, batch_size, num_chan, grid_in, grid_out, mode, tol, verbose |
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.
does the verbose option exist in all tests now? Would be good to have it for consistency
@@ -34,6 +34,7 @@ | |||
import torch.nn as nn | |||
import torch_harmonics as harmonics | |||
|
|||
import math | |||
import numpy as np |
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.
is it possible to remove the numpy import here? Ideally we should get rid of numpy for everything that gets imported with torch-harmonics
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.
Looks already very good to me. Most comments are minor things. I would suggest adding some form of tests for the cache and the modified routines for the grid/quadrature precomputations to make sure they work as intended.
Please also update pyprojerct.toml
and Changelog.md
This PR adds the following features: