-
Notifications
You must be signed in to change notification settings - Fork 10
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
Bnb/era edits #146
Bnb/era edits #146
Conversation
db8398a
to
9f09161
Compare
e7ea76c
to
242fad2
Compare
abd02cd
to
c4586f1
Compare
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 good, minor comments
Parameters | ||
---------- | ||
filepath : str | ||
Path to the file |
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.
.nc file only? Move this into the NC specific class?
sup3r/preprocessing/data_handling.py
Outdated
if len(time_key) > 0: | ||
return time_key[0] | ||
else: | ||
return 'time' |
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.
why is this a class method instead of static? Can you make a utility function for this since the same functionality is needed in post processing above? if not, move to the nc specific classes? Can you update the docstring to clarify that this is just for .nc?
sup3r/utilities/utilities.py
Outdated
if len(data['orog'].dims) == 3: | ||
hgt = data['orog'][(0,) + tuple(raster_index)] | ||
else: | ||
hgt = data['orog'][tuple(raster_index)] |
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.
These interp utilities are nearing the point where we should move them all into an interp utilities class. Complexity for this method alone is quite high, and the utilities.py file alone is massive
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.
Yeah agreed. Moved to new class.
DataHandlerNCforERA addition. resolved issues with pandas version update. unpinned xarray, netcdf, sphinx. Incremented version. Removed support for python 3.7. Added python 3.10.