-
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/log interp #155
Bnb/log interp #155
Conversation
3f8dc4c
to
2af0726
Compare
6c75c8a
to
6c5c373
Compare
c001818
to
9fc6116
Compare
sup3r/utilities/era_downloader.py
Outdated
os.remove(self.surface_file) | ||
|
||
|
||
class EraDownloader(BaseEraDownloader): |
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 base/concrete classes? is BaseEraDownloader sub-classed somewhere else? Are there abstract methods?
@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. |
@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! |
No description provided.