genie-model / cgenie

cgenie Earth system model
MIT License
12 stars 7 forks source link

Pull Request: Python 3 standardization for the codebase #7

Closed pthak006 closed 7 months ago

pthak006 commented 7 months ago

This pull request encompasses a comprehensive modernization of the cupcake repository's Python codebase, transitioning from legacy patterns and modules to Python 3 standards. Key updates include the replacement of optparse with argparse for enhanced command-line argument parsing, the adoption of f-strings for more readable and efficient string formatting, and the refinement of exception handling and file operations to leverage Python 3's more powerful features. Additionally, the code has been refactored to improve readability, maintainability, and performance, ensuring that the repository adheres to current Python best practices. These changes aim to make the cupcake repository more robust, easier to work with, and future-proof, laying a solid foundation for further development and enhancements.