Skip to content

Conversation

@ed-p-may
Copy link
Collaborator

  • Support using from_HBJSON on PO models which do not have Honeybee-Energy attributes
  • Cleaned up and standardized import statements and type hints across PHX modules, removing unused imports and updating references for clarity and maintainability.
  • Minor bug fixes and improved error handling in Honeybee-related utilities and face merging logic.
  • No functional changes to core algorithms.
  • format (isort, black, ruff)

- Created new _type_utils.py module with type-safe wrapper functions for accessing energy properties
- These wrappers have proper type hints that force linter errors when None handling is missing
- Updated cleanup.py, create_schedules.py, create_rooms.py, create_variant.py, create_building.py, and create_assemblies.py to use the new wrappers
- Modified merge functions to gracefully handle missing energy properties by creating default objects with warnings
- All functions now properly handle cases where room.properties.energy attributes are None
- No function behavior changes - only added proper type-hinting and error handling
- Added test script for Model 1.hbjson which has None energy properties
- Support using `from_HBJSON` on PO models which do not have Honeybee-Energy attributes
- Cleaned up and standardized import statements and type hints across PHX modules, removing unused imports and updating references for clarity and maintainability.
- Minor bug fixes and improved error handling in Honeybee-related utilities and face merging logic. No functional changes to core algorithms.
- format (isort, black, ruff)
@ed-p-may ed-p-may merged commit 0714f61 into main Nov 14, 2025
1 of 3 checks passed
@ed-p-may ed-p-may deleted the feature/fix-none-energy-properties branch November 14, 2025 20:36
@github-actions
Copy link

🎉 This PR is included in version 1.52.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants