Conversation
Greptile SummaryThis PR refactors and moves tensor concatenation functionality from a recipe-specific utility to the core Key changes:
The implementation is well-tested with edge cases covered. The refactoring properly handles the migration of functionality while preserving behavior.
|
| Filename | Overview |
|---|---|
| earth2studio/utils/coords.py | Added tile_xx_to_yy() and cat_coords() functions for tensor tiling/concatenation, and modified handshake_coords() to accept list of dimensions |
| test/utils/test_coords.py | Added comprehensive unit tests for new tile_xx_to_yy() and cat_coords() functions, and updated handshake_coords() test |
| recipes/hens/src/hens_ensemble.py | Updated import to use cat_coords from earth2studio.utils.coords and added lat/lon mapping before concatenation |
Last reviewed commit: 02ccfd0
Additional Comments (1)
|
Earth2Studio Pull Request
Description
added methods to concatenate tensors and to tile tensors. see example in docstring of tile_xx_to_yy
Checklist
Dependencies