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

Bnb/log interp #155

Merged
merged 25 commits into from
Aug 18, 2023
Merged

Bnb/log interp #155

merged 25 commits into from
Aug 18, 2023

Conversation

bnb32
Copy link
Collaborator

@bnb32 bnb32 commented Jul 14, 2023

No description provided.

@bnb32 bnb32 requested a review from grantbuster July 14, 2023 16:44
@bnb32 bnb32 force-pushed the bnb/log_interp branch 6 times, most recently from 3f8dc4c to 2af0726 Compare July 14, 2023 17:30
@bnb32 bnb32 force-pushed the bnb/log_interp branch 2 times, most recently from 6c75c8a to 6c5c373 Compare August 1, 2023 15:46
@bnb32 bnb32 force-pushed the bnb/log_interp branch 3 times, most recently from c001818 to 9fc6116 Compare August 8, 2023 12:29
sup3r/bias/bias_transforms.py Outdated Show resolved Hide resolved
sup3r/postprocessing/collection.py Outdated Show resolved Hide resolved
sup3r/qa/bias_stats.py Outdated Show resolved Hide resolved
sup3r/qa/bias_stats.py Outdated Show resolved Hide resolved
sup3r/utilities/era_downloader.py Outdated Show resolved Hide resolved
os.remove(self.surface_file)


class EraDownloader(BaseEraDownloader):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why base/concrete classes? is BaseEraDownloader sub-classed somewhere else? Are there abstract methods?

sup3r/utilities/interpolation.py Outdated Show resolved Hide resolved
sup3r/utilities/log_interpolator.py Outdated Show resolved Hide resolved
sup3r/utilities/log_interpolator.py Outdated Show resolved Hide resolved
sup3r/utilities/log_interpolator.py Outdated Show resolved Hide resolved
@bnb32 bnb32 requested a review from grantbuster August 16, 2023 16:34
@grantbuster
Copy link
Member

@bnb32 looks good but still curious why you did BaseEraDownloader and EraDownloader. Seems like you're not using the base class.

Also, in the future would you mind responding to all review comments? Otherwise you make me go through and manually check how you responded to all of them. This should be a dialogue, not just throwing stuff over the fence.

@bnb32
Copy link
Collaborator Author

bnb32 commented Aug 17, 2023

@bnb32 looks good but still curious why you did BaseEraDownloader and EraDownloader. Seems like you're not using the base class.

Also, in the future would you mind responding to all review comments? Otherwise you make me go through and manually check how you responded to all of them. This should be a dialogue, not just throwing stuff over the fence.

@grantbuster I used the Base class just because it felt cleaner. I put what seemed like more general methods there. Happy to combine them though. My bad about not responding, thought you would get notifications or something for what I did respond to and see code changes otherwise.

@grantbuster
Copy link
Member

@bnb32 looks good but still curious why you did BaseEraDownloader and EraDownloader. Seems like you're not using the base class.
Also, in the future would you mind responding to all review comments? Otherwise you make me go through and manually check how you responded to all of them. This should be a dialogue, not just throwing stuff over the fence.

@grantbuster I used the Base class just because it felt cleaner. I put what seemed like more general methods there. Happy to combine them though. My bad about not responding, thought you would get notifications or something for what I did respond to and see code changes otherwise.

Do you see a potential subclass using only the base class and not the full era downloader class? If not, i'd say combine them. Inheritance hierarchies should only be as deep as is strictly necessary. The purpose of abstraction is to provide a generic template for children classes. Without multiple children classes, it's just an unnecessary complication to structure IMO.

Yeah I get like an email when you push to an open PR but it's much nicer to have responses to queries rather than digging through code (again) to figure out what you did and guessing on whether or not i think you addressed the question.

@bnb32
Copy link
Collaborator Author

bnb32 commented Aug 17, 2023

Do you see a potential subclass using only the base class and not the full era downloader class? If not, i'd say combine them. Inheritance hierarchies should only be as deep as is strictly necessary. The purpose of abstraction is to provide a generic template for children classes. Without multiple children classes, it's just an unnecessary complication to structure IMO.

@grantbuster I could maybe envision something that downloads other data sources but its prob not worth keeping them separate right now. I hear ya on the responses :)

Yeah I get like an email when you push to an open PR but it's much nicer to have responses to queries rather than digging through code (again) to figure out what you did and guessing on whether or not i think you addressed the question.

@grantbuster
Copy link
Member

Do you see a potential subclass using only the base class and not the full era downloader class? If not, i'd say combine them. Inheritance hierarchies should only be as deep as is strictly necessary. The purpose of abstraction is to provide a generic template for children classes. Without multiple children classes, it's just an unnecessary complication to structure IMO.

@grantbuster I could maybe envision something that downloads other data sources but its prob not worth keeping them separate right now. I hear ya on the responses :)

Yeah i say let's merge them and then merge this PR! sweet!

@bnb32 bnb32 merged commit 117816a into main Aug 18, 2023
5 checks passed
@bnb32 bnb32 deleted the bnb/log_interp branch August 18, 2023 18:50
github-actions bot pushed a commit that referenced this pull request Aug 18, 2023
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.

Interpolator assumes ordering of height levels log interpolation of windspeed
2 participants