LoopStructural icon indicating copy to clipboard operation
LoopStructural copied to clipboard

[Question] ImportError: cannot import name 'strike_dip_vector' from 'LoopStructural.utils.helper'

Open Keven-Gao opened this issue 1 year ago • 1 comments

Hello, while conducting the finite fault example code, I encountered an error when trying to import the 'strike_dip_vector' function. I have checked all the files but cannot seem to find this function. Has the function name or its location been changed? image

Keven-Gao avatar Mar 26 '24 21:03 Keven-Gao

Hi @Keven-Gao, the function has changed names. If you replace line 4 with the following it should work.

from LoopStructural.utils import strikedip2vector as strike_dip_vector

lachlangrose avatar Apr 07 '24 23:04 lachlangrose