Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MT1D example failing on numpy 1.17.1 #814

Open
lheagy opened this issue Sep 11, 2019 · 0 comments
Open

MT1D example failing on numpy 1.17.1 #814

lheagy opened this issue Sep 11, 2019 · 0 comments

Comments

@lheagy
Copy link
Member

lheagy commented Sep 11, 2019

The MT1D inversion example fails on numpy 1.17.1, so we removed it in #807. I have started a working pr, #815 to bring it back.

The MT1D inversion example is failing

Unexpected failing examples:
  File "<path to SimPEG>/simpeg/examples/08-nsem/plot_inversion_MT1D.py", line 133, in run
    fig = NSEM.Utils.dataUtils.plotMT1DModelData(problem, [mopt])
  File "<path to SimPEG>/SimPEG/EM/NSEM/Utils/dataUtils.py", line 344, in plotMT1DModelData
    loc = rec_to_ndarr(np.unique(data1D[['x', 'y']]).copy())
  File "<path to SimPEG>/SimPEG/EM/NSEM/Utils/dataUtils.py", line 266, in rec_to_ndarr
    return rec_arr.copy().view((data_type, len(rec_arr.dtype.names)))
ValueError: Changing the dtype to a subarray type is only supported if the total itemsize is unchanged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant