space-physics / igrf

International Geomagnetic Reference Field IGRF13 in Python and Matlab
https://www.ngdc.noaa.gov/IAGA/vmod/
MIT License
66 stars 28 forks source link

Python 3.9.6 in Mac, error in example code because of base.py <--fixed! #8

Closed stopyun-jirong closed 3 years ago

stopyun-jirong commented 3 years ago

Python 3.9.6 in Mac There was error when running your example code like below

base.py line 144 -> TypeError: Using a DataArray object to construct a variable is ambiguous, please extract the data using the .data property.

So I fixed some code about 'incl' and 'decl' in igrf function

Thank you for your code

scivision commented 3 years ago

Thank you, an equivalent fix has been provided in e12a4d1b7