obspy.taup.tau_branch.TauBranch._robust_resize

TauBranch._robust_resize(attr, new_size)[source]

Try to resize an array inplace. If an error is raised use numpy resize function to create a new array. Assign the array to self as attribute listed in attr.