When running the examples in Ubuntu 16.04 and Python 3.5.2, I found the following error in parse_angelier_data.py
$ python parse_angelier_data.py Traceback (most recent call last): File "parse_angelier_data.py", line 66, in <module> main() File "parse_angelier_data.py", line 29, in main ax.rake(strike, dip, rake, 'ro') File "/home/jlb/.virtualenvs/open3d/lib/python3.5/site-packages/mplstereonet/stereonet_axes.py", line 319, in rake lon, lat = stereonet_math.rake(strike, dip, rake_angle) File "/home/jlb/.virtualenvs/open3d/lib/python3.5/site-packages/mplstereonet/stereonet_math.py", line 226, in rake lon, lat = _rotate(lon, lat, strike) File "/home/jlb/.virtualenvs/open3d/lib/python3.5/site-packages/mplstereonet/stereonet_math.py", line 78, in _rotate lon, lat = map(np.radians, [lon, lat]) AttributeError: 'float' object has no attribute 'radians'
This prevented the execution of all examples with angelier data.
Digging a little, I found that there is a case in the load function when parsing the rake value that returns a vector instead of an integer. In my case, the problem was solved by inserting:
rake = rake[0]
In line 58
I don't know if this is the right way to fix it though.
When running the examples in Ubuntu 16.04 and Python 3.5.2, I found the following error in parse_angelier_data.py
$ python parse_angelier_data.py Traceback (most recent call last): File "parse_angelier_data.py", line 66, in <module> main() File "parse_angelier_data.py", line 29, in main ax.rake(strike, dip, rake, 'ro') File "/home/jlb/.virtualenvs/open3d/lib/python3.5/site-packages/mplstereonet/stereonet_axes.py", line 319, in rake lon, lat = stereonet_math.rake(strike, dip, rake_angle) File "/home/jlb/.virtualenvs/open3d/lib/python3.5/site-packages/mplstereonet/stereonet_math.py", line 226, in rake lon, lat = _rotate(lon, lat, strike) File "/home/jlb/.virtualenvs/open3d/lib/python3.5/site-packages/mplstereonet/stereonet_math.py", line 78, in _rotate lon, lat = map(np.radians, [lon, lat]) AttributeError: 'float' object has no attribute 'radians'
This prevented the execution of all examples with angelier data.
Digging a little, I found that there is a case in the load function when parsing the rake value that returns a vector instead of an integer. In my case, the problem was solved by inserting:
rake = rake[0]
In line 58 I don't know if this is the right way to fix it though.