diff --git a/_downloads/cd42d7915fea37e5af1df86ab843e0b9/book.yml b/_downloads/cd42d7915fea37e5af1df86ab843e0b9/book.yml index 5025078..e24bc29 100644 --- a/_downloads/cd42d7915fea37e5af1df86ab843e0b9/book.yml +++ b/_downloads/cd42d7915fea37e5af1df86ab843e0b9/book.yml @@ -24,7 +24,8 @@ jobs: python-version: 3.9 - name: Install dependencies manually run: | - pip install jupyter-book matplotlib numpy pandas future cartopy + pip install future matplotlib numpy cartopy pandas requests seaborn jupyter-book scikit-learn ipywidgets + # pip install jupyter-book matplotlib numpy pandas future cartopy pip install pmagpy==4.2.106 pip install -e ./smpsite diff --git a/_images/13dec0bcb55ceeefbaa7e713689e9b4a20e3b8fc68aff7e1c90ddc3967582034.png b/_images/13dec0bcb55ceeefbaa7e713689e9b4a20e3b8fc68aff7e1c90ddc3967582034.png deleted file mode 100644 index 2e39fca..0000000 Binary files a/_images/13dec0bcb55ceeefbaa7e713689e9b4a20e3b8fc68aff7e1c90ddc3967582034.png and /dev/null differ diff --git a/_images/65f0e2bcbab2c7dbdf7f00bfb4809806b8df4ace89593487a994a72300ee8b43.png b/_images/65f0e2bcbab2c7dbdf7f00bfb4809806b8df4ace89593487a994a72300ee8b43.png new file mode 100644 index 0000000..75bf411 Binary files /dev/null and b/_images/65f0e2bcbab2c7dbdf7f00bfb4809806b8df4ace89593487a994a72300ee8b43.png differ diff --git a/_images/812d29482720779fbdbbc93f51b4ab4e62faed7830bf6d65e89c8c3c06d0e98a.png b/_images/812d29482720779fbdbbc93f51b4ab4e62faed7830bf6d65e89c8c3c06d0e98a.png new file mode 100644 index 0000000..529d71f Binary files /dev/null and b/_images/812d29482720779fbdbbc93f51b4ab4e62faed7830bf6d65e89c8c3c06d0e98a.png differ diff --git a/notebooks/Sampling_comparison.html b/notebooks/Sampling_comparison.html index 97a4581..75a0ac5 100644 --- a/notebooks/Sampling_comparison.html +++ b/notebooks/Sampling_comparison.html @@ -435,20 +435,6 @@
---------------------------------------------------------------------------
-ModuleNotFoundError Traceback (most recent call last)
-Cell In[1], line 4
- 2 import pandas as pd
- 3 import matplotlib.pyplot as plt
-----> 4 import seaborn as sns
- 6 import pmagpy.pmag as pmag
- 7 import pmagpy.ipmag as ipmag
-
-ModuleNotFoundError: No module named 'seaborn'
-
---------------------------------------------------------------------------
-NameError Traceback (most recent call last)
-Cell In[2], line 2
- 1 angular_dispersio_within_site = 10 # degrees
-----> 2 kappa_within_site = smp.angular2kappa(angular_dispersio_within_site)
- 3 latitude = 30
- 4 outlier_rate = 0.10
-
-NameError: name 'smp' is not defined
-
---------------------------------------------------------------------------
-ModuleNotFoundError Traceback (most recent call last)
-Cell In[1], line 1
-----> 1 import pmagpy.pmag as pmag
- 2 import pmagpy.ipmag as ipmag
- 3 import matplotlib.pyplot as plt
-
-File /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pmagpy/__init__.py:24
- 5 if sys.version_info <= (3,):
- 6 raise Exception("""
- 7 You are running Python {}.
- 8 This version of pmagpy is only compatible with Python 3.
- (...)
- 22
- 23 """.format(sys.version))
----> 24 from . import pmag
- 25 from . import ipmag
- 26 from . import pmagplotlib
-
-File /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/pmagpy/pmag.py:19
- 17 from pmag_env import set_env
- 18 import pandas as pd
----> 19 import SPD.lib.leastsq_jacobian as lib_k
- 21 WARNINGS = {'basemap': False, 'cartopy': False}
- 24 def get_version():
-
-File /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/SPD/__init__.py:11
- 1 #!/usr/bin/env python
- 2
- 3 # __init__.py: -*- Python -*- DESCRIPTIVE TEXT.
- (...)
- 9 #import os
- 10 #print 'cwd', os.getcwd()
----> 11 import SPD.spd
- 12 import SPD.lib
- 13 SPD.magic_file = 'SPD/magic_measurements.txt'
-
-File /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/SPD/spd.py:30
- 25 import os
- 26 #import pylab
- 27 #import scipy
- 28 #from scipy import *
- 29 #import os
----> 30 import SPD.lib.lib_arai_plot_statistics as lib_arai
- 31 #import SPD.lib.lib_curvature as lib_k
- 32 import SPD.lib.leastsq_jacobian as lib_k
-
-File /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/SPD/lib/__init__.py:15
- 13 from . import lib_arai_plot_statistics
- 14 from . import lib_curvature
----> 15 from . import leastsq_jacobian
- 16 from . import lib_directional_statistics
- 17 from . import lib_IZZI_MD
-
-File /opt/hostedtoolcache/Python/3.9.18/x64/lib/python3.9/site-packages/SPD/lib/leastsq_jacobian.py:6
- 4 from past.utils import old_div
- 5 import numpy
-----> 6 from scipy import optimize
- 9 # Coordinates of the 2D points
- 11 X = [ 9, 35, -13, 10, 23, 0]
-
-ModuleNotFoundError: No module named 'scipy'
-
We define a parameter class defined inside smpsite
that allow us to specify all the parameters of interest at the same time. These parameters include:
---------------------------------------------------------------------------
-NameError Traceback (most recent call last)
-Cell In[2], line 1
-----> 1 params0 = smp.Params(N=10,
- 2 n0=4,
- 3 kappa_within_site=100,
- 4 site_lat=10,
- 5 site_long=0,
- 6 outlier_rate=0.10,
- 7 secular_method="G",
- 8 kappa_secular=None)
-
-NameError: name 'smp' is not defined
-
Once the parameters are specified, we can just generate a random sample:
---------------------------------------------------------------------------
-NameError Traceback (most recent call last)
-File <timed exec>:1
-
-NameError: name 'smp' is not defined
+CPU times: user 18.7 ms, sys: 354 µs, total: 19.1 ms
+Wall time: 19.6 ms
---------------------------------------------------------------------------
-NameError Traceback (most recent call last)
-Cell In[4], line 1
-----> 1 plt.figure()
- 2 ipmag.plot_net(1)
- 3 ipmag.plot_di(dec=df_sample.vgp_long.values, inc=df_sample.vgp_lat.values)
-
-NameError: name 'plt' is not defined
-