You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ENH] Add grid serialization and improve binary data handling (#1034)
# Description
Enhanced model serialization to include grid data in binary format. This PR improves the serialization process by:
1. Adding support for serializing and deserializing grid data (custom grid and topography)
2. Improving binary encoding/decoding with proper length tracking for different data sections
3. Adding docstrings to binary encoder functions for better code documentation
4. Fixing type checking in `calculate_line_coordinates_2points` to support tuples in addition to lists
5. Enabling validation of serialization by default in compute functions
6. Updating tests to work with the new serialization format
Relates to #serialization-enhancement
# Checklist
- [x] My code uses type hinting for function and method arguments and return values.
- [x] I have created tests which cover my code.
- [x] The test code either 1. demonstrates at least one valuable use case (e.g. integration tests)
or 2. verifies that outputs are as expected for given inputs (e.g. unit tests).
- [x] New tests pass locally with my changes.
0 commit comments