Skip to content

Commit 8307d7d

Browse files
committed
[META] Change liquid_earth_api and liquid_earth_sdk
Replaced references to `liquid_earth_api` with `liquid_earth_sdk` and updated required imports. Adjusted optional dependencies and requirements to reflect the switch to the new SDK package.
1 parent 0382e98 commit 8307d7d

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

gempy_viewer/API/_plot_LiquidEarth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Optional
22

33
import gempy
4-
from gempy_viewer.optional_dependencies import require_liquid_earth_api
4+
from gempy_viewer.optional_dependencies import require_liquid_earth_sdk
55

66

77
def plot_to_liquid_earth(
@@ -10,7 +10,7 @@ def plot_to_liquid_earth(
1010
make_new_space: bool = False
1111
):
1212
# if user_token is None Try to grab it from the environment
13-
liquid_earth_api = require_liquid_earth_api() # ! Order matters
13+
liquid_earth_api = require_liquid_earth_sdk() # ! Order matters
1414

1515
if user_token is None:
1616
import os

gempy_viewer/optional_dependencies.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
def require_liquid_earth_api():
1+
def require_liquid_earth_sdk():
22
try:
3-
import liquid_earth_api
3+
import liquid_earth_sdk
44
except ImportError:
5-
raise ImportError("The liquid_earth_api package is required to run this function.")
6-
return liquid_earth_api
5+
raise ImportError("The liquid_earth_sdk package is required to run this function.")
6+
return liquid_earth_sdk
77

88
def require_gempy_plugins():
99
try:

requirements/optional_requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ scikit-image
66
scipy
77
pooch
88
pandas
9+
10+
liquid-earth-sdk

0 commit comments

Comments
 (0)