MTgeophysics / mtpy

Python toolbox for standard Magnetotelluric (MT) data analysis
GNU General Public License v3.0
147 stars 66 forks source link

Update mesh_tools.py #158

Closed kujaku11 closed 1 year ago

kujaku11 commented 2 years ago

Added a function for rounding a number. This will eliminate 0's when the mesh elements are single digits as described in issue #157 .

Added a function called get_rounding that will round to the correct significant digits. Previously it was set to -2, which causes 0's when the mesh elements are 0.

Description

Added the get_rounding method to all the mesh creating functions to make sure the rounding is properly set.

Motivation and Context

fixes issue #157

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist: