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

Sunt05/issue355 #364

Merged
merged 9 commits into from
Feb 6, 2025
Merged

Sunt05/issue355 #364

merged 9 commits into from
Feb 6, 2025

Conversation

sunt05
Copy link

@sunt05 sunt05 commented Feb 6, 2025

  • Added verbose mode to pytest command
  • Enabled short traceback format for clearer error output
  • Configured coverage reporting for supy package
  • Display coverage report with missing line details
  • Add Enum to all method options in ModelPhysics

- Implemented a new test method to verify SUEWS configuration conversion between YAML and DataFrame formats
- Checks preservation of key configuration attributes during conversion
- Ensures DataFrame conversion maintains the original configuration structure
- Implemented comprehensive data model classes for SUEWS configuration and state management
- Created base classes for handling references, values with DOI, and surface types
- Developed models for physics settings, profiles, surface properties, and model states
- Included support for converting between YAML, DataFrame, and object representations
- Added validation and conversion methods for different surface types (urban, vegetation, water)
Minor cleanup of unnecessary import from site module in surface.py
- Moved `init_df_state` from `state.py` to `type.py`
- Added `from_yaml` class method to `SUEWSConfig` in `core.py`
- Updated imports in multiple data model modules
- Added new utility function `init_config_from_yaml` in `_config.py`
- Installed new data model files `hydro.py` and `ohm.py`
…on tests

- Added unit tests for AnthropogenicEmissions data model conversion
- Implemented validation tests for Model physics settings
- Added tests for Site properties latitude validation
- Created tests for InitialStates snow albedo validation
- Expanded multi-site configuration testing
- Updated imports in test_data_model.py to support new data model classes
- Removed redundant AnthropogenicEmissions test
- Simplified Site and InitialStates validation tests
- Updated test methods to directly validate model properties
- Improved error checking and property validation in test cases
- Introduced multiple new enum classes to represent different model physics methods
- Updated ModelPhysics class to use strongly typed enums for configuration settings
- Added YAML representation for all new enum classes
- Improved type safety and clarity in model configuration options
- Expanded documentation for enum conversion to YAML
- Added verbose mode to pytest command
- Enabled short traceback format for clearer error output
- Configured coverage reporting for supy package
- Display coverage report with missing line details
@sunt05 sunt05 merged commit 8d33135 into master Feb 6, 2025
20 checks passed
@sunt05
Copy link
Author

sunt05 commented Feb 6, 2025

Address #355

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.

1 participant