-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: modernise map utils (#3615)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new function to compute minimum and maximum values along with unique bin counts for input vectors. - **Refactor** - Enhanced the handling of magnetic field data by improving type usage and logic in multiple functions. - Streamlined calculations for minimum and maximum values using the new utility function. - Simplified the material mapping functions to improve maintainability and reduce complexity. - **Bug Fixes** - Adjusted error handling and control flow for grid value settings based on magnetic field data. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
4 changed files
with
175 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.