-
Notifications
You must be signed in to change notification settings - Fork 45
Divided the driver into separate files in a Package. #404
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
Conversation
blychs
left a comment
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.
Hi Antonio,
Thanks for doing this. I like the breaking up of the driver, which since now driver is a directory shouldn't really change much. I also like you going for absolute rather than relative imports.
My only worry is with the change of class names. It is true that PEP8 asks for CamelCase in the case of classes, but wouldn't this break our current scripts, since they all call of an = driver.analysis() ? If that is the case, I think we should either add the lowercase names as an alias or wait for v2 to do this, since v1.1 shouldn't have breaking changes.
Maybe you already did this, and I didn't see it.
Cheers
Pablo
|
Oh yeah! You are right that would break scripts. I think the second one would be safer, can't think of a case where the first one fails but that doesn't mean it doesn't exist. So i'll add it to this pull request. |
|
Sounds good
El mié, 24 dic 2025, 14:39, Antonio Torga ***@***.***>
escribió:
… *AntonioTorga* left a comment (NCAR/MELODIES-MONET#404)
<#404 (comment)>
Oh yeah! You are right that would break scripts.
I could:
1- Export them from the package with an alias.
2- Undo the changes for now.
I think the second one would be safer, can't think of a case where the
first one fails but that doesn't mean it doesn't exist. So i'll add it to
this pull request.
—
Reply to this email directly, view it on GitHub
<#404 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJPVNVLSRHEDYBRTVOWJBHL4DLTX7AVCNFSM6AAAAACPROJGGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMOJQGQZDEMRQHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
This is ready. |
blychs
left a comment
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.
Just a few (very minor) suggestions. Let me know and I'll be happy to approve it
Althought it has to be something like: Already fixed and tested. Worked well. |
blychs
left a comment
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.
Great job, @AntonioTorga !!!
|
Great job @AntonioTorga, do you want to resolve the conflicts? Perhaps something got merged in after you did this? |
|
Hi Becky! Merge conflicts are now solved and tested :) |
|
I looked through the code and re-ran the doc examples. @AntonioTorga I just found one small problem above. If we can update this, then I can re-run the AirNow CAM-Chem SE example (which is how I found this problem) and double check it now works and then I can approve and merge this in tomorrow. |
|
@rschwant Done! sorry for the delay. Let me know if you find any other errors. |
rschwant
left a comment
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.
Great thanks, this now passes all the examples and agreed we need to make all the ReadTheDocs examples test cases too so we find problems faster and I don’t have to re-run them and manually check all the time. Hopefully we can do this soon.
Basically that. Separated all the clases from the driver into model, observation, pair and analysis files. Each file contains just one class.
Changed all the import statements from relative to absolute, to prevent errors later when moving files around the repository.
Changed the class names to meet the PEP8 standard.
I already tested it with a big control file, but would really like for someone else to test it with other data. Mainly because i've been having some issues with external dependencies (netCDF4 and dask).