cpalfonso / stellar-data-mining

Scripts to extract subduction-related data for mineral exploration data mining
1 stars 1 forks source link

extract grids - gplately geometry #4

Open RichardScottOZ opened 2 months ago

RichardScottOZ commented 2 months ago
ImportError                               Traceback (most recent call last)
Cell In[1], line 6
      3 import warnings
      5 import pandas as pd
----> 6 from gplately.tools import plate_isotherm_depth
      8 from lib.check_files import (
      9     check_plate_model,
     10     check_source_data,
     11 )
     12 from lib.coregister_combined_point_data import run_coregister_combined_point_data

File ~/miniconda3/envs/sdm/lib/python3.12/site-packages/gplately/__init__.py:176
    173     subprocess.call([sys.executable, "-m", "pip", "install", "plate-model-manager"])
    174     import plate_model_manager
--> 176 from . import (
    177     data,
    178     download,
    179     geometry,
    180     gpml,
    181     grids,
    182     oceans,
    183     plot,
    184     ptt,
    185     pygplates,
    186     read_geometries,
    187     reconstruction,
    188 )
    189 from .data import DataCollection
    190 from .download import DataServer

File ~/miniconda3/envs/sdm/lib/python3.12/site-packages/gplately/plot/__init__.py:20
      1 """Tools for reconstructing and plotting geological features and feature data through time.
      2 
      3 Methods in this module reconstruct geological features using
   (...)
     18    -  `shapelify_feature_polygons`
     19 """
---> 20 from ..geometry import (
     21     shapelify_features,
     22     shapelify_feature_lines,
     23     shapelify_feature_polygons,
     24 )
     25 from .plot_topologies import PlotTopologies
     26 from .subduction_teeth import (
     27     SubductionTeeth,
     28     plot_subduction_teeth,
     29 )

ImportError: cannot import name 'shapelify_features' from 'gplately.geometry' (/home/rscott/miniconda3/envs/sdm/lib/python3.12/site-packages/gplately/geometry.py)
RichardScottOZ commented 2 months ago

and depending on version, this

ImportError                               Traceback (most recent call last)
Cell In[1], line 16
     14 from lib.coregister_crustal_thickness import run_coregister_crustal_thickness
     15 from lib.coregister_magnetic import coregister_magnetic
---> 16 from lib.erodep import calculate_erodep
     17 from lib.misc import (
     18     calculate_slab_flux,
     19     calculate_water_thickness,
     20 )
     21 from lib.pu import generate_grid_points

File ~/data/stellar-data-mining/lib/erodep/__init__.py:3
      1 from ._extract_erodep import *
      2 from ._ml import *
----> 3 from ._visualisation import *
      5 __all__ = [
      6     "time_from_filename",
      7     "filename_from_time",
   (...)
     35     "plot_likelihood",
     36 ]

File ~/data/stellar-data-mining/lib/erodep/_visualisation.py:20
     14 import pandas as pd
     15 from gplately import (
     16     PlateReconstruction,
     17     PlotTopologies,
     18     Raster,
     19 )
---> 20 from gplately.plot import (
     21     SubductionTeeth,
     22     shapelify_feature_lines,
     23 )
     24 try:
     25     from gplately.plot import _meridian_from_projection

ImportError: cannot import name 'SubductionTeeth' from 'gplately.plot' (/home/rscott/miniconda3/envs/sdm/lib/python3.12/site-packages/gplately/plot.py)