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

MagneticDipoleApplet not functioning due to initial import error #120

Open
tqkz65 opened this issue Nov 15, 2021 · 0 comments
Open

MagneticDipoleApplet not functioning due to initial import error #120

tqkz65 opened this issue Nov 15, 2021 · 0 comments

Comments

@tqkz65
Copy link

tqkz65 commented Nov 15, 2021

The first section of the magneticDipoleApplet returns the following import error for the key function, meaning the rest of the modelling code is not functioning. I'd love to use this in my geophysics class, so let me know if/when it has been fixed!


ImportError Traceback (most recent call last)
/tmp/ipykernel_78/721328210.py in
----> 1 from geoscilabs.mag.MagDipoleApp import MagneticDipoleApp
2 mag = MagneticDipoleApp()

/srv/conda/envs/notebook/lib/python3.8/site-packages/geoscilabs/mag/init.py in
----> 1 from . import Mag
2 from . import Simulator
3 from . import MagDipole
4 from . import MagDipoleApp

/srv/conda/envs/notebook/lib/python3.8/site-packages/geoscilabs/mag/Mag.py in
3 import re
4 import numpy as np
----> 5 from SimPEG import utils, data
6 from SimPEG.potential_fields import magnetics as mag
7

/srv/conda/envs/notebook/lib/python3.8/site-packages/SimPEG/init.py in
6 from discretize import tests
7
----> 8 from .data import Data, SyntheticData
9 from . import data_misfit
10 from . import directives

/srv/conda/envs/notebook/lib/python3.8/site-packages/SimPEG/data.py in
4 import warnings
5
----> 6 from .survey import BaseSurvey
7 from . import survey
8 from .utils import mkvc

/srv/conda/envs/notebook/lib/python3.8/site-packages/SimPEG/survey.py in
6 from .utils.code_utils import deprecate_property, deprecate_class, deprecate_method
7
----> 8 from .utils import mkvc, Counter
9 from .props import BaseSimPEG
10 import types

/srv/conda/envs/notebook/lib/python3.8/site-packages/SimPEG/utils/init.py in
57 from .plot_utils import plot2Ddata, plotLayer, plot_1d_layer_model
58 from .io_utils import download
---> 59 from .pgi_utils import (
60 make_SimplePGI_regularization,
61 make_PGI_regularization,

/srv/conda/envs/notebook/lib/python3.8/site-packages/SimPEG/utils/pgi_utils.py in
20 _check_shape,
21 )
---> 22 from sklearn.mixture._base import _check_X, check_random_state, ConvergenceWarning
23 import warnings
24 from .mat_utils import mkvc

ImportError: cannot import name '_check_X' from 'sklearn.mixture._base' (/srv/conda/envs/notebook/lib/python3.8/site-packages/sklearn/mixture/_base.py)

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

No branches or pull requests

1 participant