geophysics / mtpy

collection of python tools for standard MT data processing
GNU General Public License v3.0
32 stars 32 forks source link

Bug occam2d_rewrite #31

Closed ralfschaa closed 8 years ago

ralfschaa commented 8 years ago

Hi all,

I encountered the following in the occam2d_rewrite module, near line 1058:

self.geoelectric_strike = np.median(np.nonzero(strike_angles))

this is a bug: np.nonzero return an array of integers (indices where strike_angles is non-zero).

Question: is this the correct module to use for creating an Occam2D datafile?

Cheers -Ralf

kujaku11 commented 8 years ago

Good catch, I just found that one a second ago. I'll change that accordingly.

Yes, use the occam2d_rewrite to create a data file, its the most up to date version, the others are legacy files that will be deprecated in the next update.

Cheers